Merge pull request #1882 from glenjamin/patch-1

Note how to access Perf in docs
This commit is contained in:
Cheng Lou
2014-07-20 11:45:24 -07:00

View File

@@ -16,6 +16,8 @@ In addition to giving you an overview of your app's overall performance, ReactPe
## General API
The `Perf` object documented here is exposed as `React.addons.Perf` when using the `react-with-addons.js` build in development mode.
### `Perf.start()` and `Perf.stop()`
Start/stop the measurement. The React operations in-between are recorded for analyses below. Operations that took an insignificant amount of time are ignored.