summaryrefslogtreecommitdiff
path: root/doc/api/perf_hooks.md
diff options
context:
space:
mode:
authorJames M Snell <jasnell@gmail.com>2018-01-08 13:32:30 -0800
committerJames M Snell <jasnell@gmail.com>2018-01-11 10:41:49 -0800
commit20fe04f113fb81423585077265d3026584989232 (patch)
tree207afd5bffa56416f95cbb04df50188428862fe6 /doc/api/perf_hooks.md
parent47a282293f62813a88b4c4ba18bc5e5246a6515c (diff)
downloadandroid-node-v8-20fe04f113fb81423585077265d3026584989232.tar.gz
android-node-v8-20fe04f113fb81423585077265d3026584989232.tar.bz2
android-node-v8-20fe04f113fb81423585077265d3026584989232.zip
perf_hooks,http2: add performance.clear()
Add missing clear() method to `perf_hooks.performance` to remove the entries from the master timeline to prevent that from being a memory leak. PR-URL: https://github.com/nodejs/node/pull/18046 Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'doc/api/perf_hooks.md')
-rw-r--r--doc/api/perf_hooks.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/api/perf_hooks.md b/doc/api/perf_hooks.md
index 5ce94624cb..3f2cc506f3 100644
--- a/doc/api/perf_hooks.md
+++ b/doc/api/perf_hooks.md
@@ -29,6 +29,14 @@ added: v8.5.0
The `Performance` provides access to performance metric data. A single
instance of this class is provided via the `performance` property.
+### performance.clearEntries(name)
+<!-- YAML
+added: REPLACEME
+-->
+
+Remove all performance entry objects with `entryType` equal to `name` from the
+Performance Timeline.
+
### performance.clearFunctions([name])
<!-- YAML
added: v8.5.0