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
path: root/tools
diff options
context:
space:
mode:
authorJames M Snell <jasnell@gmail.com>2021-01-30 20:26:15 +0300
committerMyles Borins <mylesborins@github.com>2021-08-31 17:55:05 +0300
commit4a88ddeecad73516c0397f76cd77cc68cf42198f (patch)
tree629299394fc7889792c5390a689cf8947bf53b2a /tools
parent32de361d7087f7170aa8920ef9daac210a777f10 (diff)
perf_hooks: introduce createHistogram
Adds a new `perf_hooks.createHistogram()` API for creating histogram instances that allow user recording. Makes Histogram instances cloneable via MessagePort. This allows, for instance, an event loop delay monitor to be running on the main thread while the histogram data can be monitored actively from a worker thread. Signed-off-by: James M Snell <jasnell@gmail.com> PR-URL: https://github.com/nodejs/node/pull/37155 Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/doc/type-parser.mjs4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/doc/type-parser.mjs b/tools/doc/type-parser.mjs
index 72a16a44055..e49f6898bba 100644
--- a/tools/doc/type-parser.mjs
+++ b/tools/doc/type-parser.mjs
@@ -133,6 +133,10 @@ const customTypesMap = {
'os.constants.dlopen': 'os.html#os_dlopen_constants',
'Histogram': 'perf_hooks.html#perf_hooks_class_histogram',
+ 'IntervalHistogram':
+ 'perf_hooks.html#perf_hooks_class_intervalhistogram_extends_histogram',
+ 'RecordableHistogram':
+ 'perf_hooks.html#perf_hooks_class_recordablehistogram_extends_histogram',
'PerformanceEntry': 'perf_hooks.html#perf_hooks_class_performanceentry',
'PerformanceNodeTiming':
'perf_hooks.html#perf_hooks_class_performancenodetiming',