diff options
author | James M Snell <jasnell@gmail.com> | 2021-12-12 03:59:48 +0300 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2021-12-19 20:56:36 +0300 |
commit | 23637e9a3b208892449268290143dad4391fee45 (patch) | |
tree | c8f83283bb0d357b7db22298e217cbe5e877a656 /src/node_perf.h | |
parent | 665b404e6512c6fdfe811e793d4f14bf8f8a7d36 (diff) |
perf_hooks: multiple fixes for Histogram
* The createHistogram(options) options weren't actually implemented
* Add a new count property that tracks the number of samples
* Adds BigInt options for relevant properties
* Adds add(other) method for RecordableHistogram
* Cleans up and expands tests
* Eliminates unnecessary ELDHistogram native class
* Improve/Simplify histogram transfer impl
Signed-off-by: James M Snell <jasnell@gmail.com>
perf_hooks: simplify Histogram constructor options
Signed-off-by: James M Snell <jasnell@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/41153
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'src/node_perf.h')
-rw-r--r-- | src/node_perf.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/node_perf.h b/src/node_perf.h index 64913ab9de7..b1a99171386 100644 --- a/src/node_perf.h +++ b/src/node_perf.h @@ -160,23 +160,6 @@ struct GCPerformanceEntryTraits { 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); - - ELDHistogram( - Environment* env, - v8::Local<v8::Object> wrap, - int64_t interval); - - void OnInterval() override; - - SET_MEMORY_INFO_NAME(ELDHistogram) - SET_SELF_SIZE(ELDHistogram) -}; - } // namespace performance } // namespace node |