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>2021-01-30 20:26:15 +0300
committerJames M Snell <jasnell@gmail.com>2021-02-15 00:03:49 +0300
commit4a19cc8947b1bba2b2d27816ec3d0edf9b28e503 (patch)
tree8c75fbee068d6eda2682bd660198952ffb30bcf4 /src/node_http2.cc
parentce4798b55515827f2a68d269d0f433e3ea9828bb (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/node_http2.cc')
-rw-r--r--src/node_http2.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node_http2.cc b/src/node_http2.cc
index a4b8e4d2ac7..ccff6dc4ca6 100644
--- a/src/node_http2.cc
+++ b/src/node_http2.cc
@@ -2,6 +2,7 @@
#include "allocated_buffer-inl.h"
#include "aliased_struct-inl.h"
#include "debug_utils-inl.h"
+#include "histogram-inl.h"
#include "memory_tracker-inl.h"
#include "node.h"
#include "node_buffer.h"