Browse Source

Rename ReactPerf methods to match the upcoming ReactPerf revamp

main
Dan Abramov 9 years ago
parent
commit
0beef5d943
  1. 6
      docs/10.9-perf.md

6
docs/10.9-perf.md

@ -41,11 +41,15 @@ Prints the overall time taken. If no argument's passed, defaults to all the meas
![](/react/img/docs/perf-wasted.png)
### `Perf.printDOM(measurements)`
### `Perf.printOperations(measurements)`
Prints the underlying DOM manipulations, e.g. "set innerHTML" and "remove".
![](/react/img/docs/perf-dom.png)
### `Perf.printDOM(measurements)`
This method has been renamed to `printOperations()` which is described in the previous paragraph. Currently `printDOM()` still exists as an alias but it prints a deprecation warning and will eventually be removed.
## Advanced API
The above print methods use `Perf.getLastMeasurements()` to pretty-print the result.

Loading…
Cancel
Save