Rename ReactPerf methods to match the upcoming ReactPerf revamp

This commit is contained in:
Dan Abramov
2016-03-17 20:03:23 +00:00
parent 71d74b2e74
commit 0beef5d943

View File

@@ -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.