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:
authorJoyee Cheung <joyeec9h3@gmail.com>2021-06-08 19:19:04 +0300
committerJoyee Cheung <joyeec9h3@gmail.com>2021-06-28 11:20:15 +0300
commit50cfbf9f77ff1625f235d2ec9a31e409028b899d (patch)
treea6625e66a949dee03a8c8fb4ee5eb6f04dbbc888 /src/histogram.h
parenta75d4e272481dfaa1353a063a27baf035a6cc37a (diff)
bootstrap: support perf hooks in snapshot
PR-URL: https://github.com/nodejs/node/pull/38971 Refs: https://github.com/nodejs/node/issues/35711 Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/histogram.h')
-rw-r--r--src/histogram.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/histogram.h b/src/histogram.h
index 8c164f54cfd..00b4f7796f8 100644
--- a/src/histogram.h
+++ b/src/histogram.h
@@ -18,6 +18,8 @@
namespace node {
+class ExternalReferenceRegistry;
+
constexpr int kDefaultHistogramFigures = 3;
class Histogram : public MemoryRetainer {
@@ -78,6 +80,7 @@ class HistogramBase : public BaseObject, public HistogramImpl {
static v8::Local<v8::FunctionTemplate> GetConstructorTemplate(
Environment* env);
static void Initialize(Environment* env, v8::Local<v8::Object> target);
+ static void RegisterExternalReferences(ExternalReferenceRegistry* registry);
static BaseObjectPtr<HistogramBase> Create(
Environment* env,
@@ -154,6 +157,8 @@ class IntervalHistogram : public HandleWrap, public HistogramImpl {
RESET
};
+ static void RegisterExternalReferences(ExternalReferenceRegistry* registry);
+
static v8::Local<v8::FunctionTemplate> GetConstructorTemplate(
Environment* env);