From 0beef5d943a6ad7cffcb58d7d67f28a011d8a3c4 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Thu, 17 Mar 2016 20:03:23 +0000 Subject: [PATCH] Rename ReactPerf methods to match the upcoming ReactPerf revamp --- docs/10.9-perf.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/10.9-perf.md b/docs/10.9-perf.md index 0a1e21333..fe442f02d 100644 --- a/docs/10.9-perf.md +++ b/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.