Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames M Snell <jasnell@gmail.com>2018-01-09 00:32:30 +0300
committerJames M Snell <jasnell@gmail.com>2018-01-11 21:41:49 +0300
commit20fe04f113fb81423585077265d3026584989232 (patch)
tree207afd5bffa56416f95cbb04df50188428862fe6 /doc/api/perf_hooks.md
parent47a282293f62813a88b4c4ba18bc5e5246a6515c (diff)
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 5ce94624cb9..3f2cc506f31 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