diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2021-06-08 19:19:04 +0300 |
---|---|---|
committer | Joyee Cheung <joyeec9h3@gmail.com> | 2021-06-28 11:20:15 +0300 |
commit | 50cfbf9f77ff1625f235d2ec9a31e409028b899d (patch) | |
tree | a6625e66a949dee03a8c8fb4ee5eb6f04dbbc888 /src/node_perf.h | |
parent | a75d4e272481dfaa1353a063a27baf035a6cc37a (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/node_perf.h')
-rw-r--r-- | src/node_perf.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/node_perf.h b/src/node_perf.h index 33cf9f2ec65..64913ab9de7 100644 --- a/src/node_perf.h +++ b/src/node_perf.h @@ -3,10 +3,11 @@ #if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS -#include "node.h" -#include "node_perf_common.h" #include "base_object-inl.h" #include "histogram.h" +#include "node.h" +#include "node_internals.h" +#include "node_perf_common.h" #include "v8.h" #include "uv.h" @@ -16,6 +17,7 @@ namespace node { class Environment; +class ExternalReferenceRegistry; namespace performance { @@ -160,6 +162,7 @@ using GCPerformanceEntry = PerformanceEntry<GCPerformanceEntryTraits>; class ELDHistogram : public IntervalHistogram { public: + static void RegisterExternalReferences(ExternalReferenceRegistry* registry); static void Initialize(Environment* env, v8::Local<v8::Object> target); static void New(const v8::FunctionCallbackInfo<v8::Value>& args); |