mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-24 04:33:10 +00:00
Rename ReactPerf methods to match the upcoming ReactPerf revamp
This commit is contained in:
@@ -41,11 +41,15 @@ Prints the overall time taken. If no argument's passed, defaults to all the meas
|
||||
|
||||

|
||||
|
||||
### `Perf.printDOM(measurements)`
|
||||
### `Perf.printOperations(measurements)`
|
||||
Prints the underlying DOM manipulations, e.g. "set innerHTML" and "remove".
|
||||
|
||||

|
||||
|
||||
### `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.
|
||||
|
||||
Reference in New Issue
Block a user