Updated the Performance tools doc page.
Now it’s possible to read the page from top to the bottom without asking oneself “Ok, but how do I get these measurements?”
Mikolaj Dadela committed
Aug 17, 2015 at 11:18 UTC
75fafe1c0be3014242992203dcab359840cafcbc
1 file changed
+2
docs/docs/10.9-perf.md
+2
@@ -21,6 +21,8 @@ The `Perf` object documented here is exposed as `React.addons.Perf` when using t
21
### `Perf.start()` and `Perf.stop()`
22
Start/stop the measurement. The React operations in-between are recorded for analyses below. Operations that took an insignificant amount of time are ignored.
23
24
+After stopping, you will need `Perf.getLastMeasurements()` (described below) to get the measurements.
25
+
26
### `Perf.printInclusive(measurements)`
27
Prints the overall time taken. If no argument's passed, defaults to all the measurements from the last recording. This prints a nicely formatted table in the console, like so:
28