diff options
author | James M Snell <jasnell@gmail.com> | 2021-01-30 20:26:15 +0300 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2021-02-15 00:03:49 +0300 |
commit | 4a19cc8947b1bba2b2d27816ec3d0edf9b28e503 (patch) | |
tree | 8c75fbee068d6eda2682bd660198952ffb30bcf4 /src/env.h | |
parent | ce4798b55515827f2a68d269d0f433e3ea9828bb (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 'src/env.h')
-rw-r--r-- | src/env.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/env.h b/src/env.h index 1ec3351b8cf..dae522f2530 100644 --- a/src/env.h +++ b/src/env.h @@ -449,11 +449,12 @@ constexpr size_t kFsStatsBufferLength = V(filehandlereadwrap_template, v8::ObjectTemplate) \ V(fsreqpromise_constructor_template, v8::ObjectTemplate) \ V(handle_wrap_ctor_template, v8::FunctionTemplate) \ - V(histogram_instance_template, v8::ObjectTemplate) \ + V(histogram_ctor_template, v8::FunctionTemplate) \ V(http2settings_constructor_template, v8::ObjectTemplate) \ V(http2stream_constructor_template, v8::ObjectTemplate) \ V(http2ping_constructor_template, v8::ObjectTemplate) \ V(i18n_converter_template, v8::ObjectTemplate) \ + V(intervalhistogram_constructor_template, v8::FunctionTemplate) \ V(libuv_stream_wrap_ctor_template, v8::FunctionTemplate) \ V(message_port_constructor_template, v8::FunctionTemplate) \ V(microtask_queue_ctor_template, v8::FunctionTemplate) \ |