diff options
author | James M Snell <jasnell@gmail.com> | 2020-02-28 00:14:38 +0300 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2020-03-02 22:01:00 +0300 |
commit | eb2fe5ff90d68520b148fdc86362c07561c1c635 (patch) | |
tree | 6ad5259a9423f6de5d414abe938576627b9ea432 /src/node_perf.h | |
parent | 0fac393d263fc7e2f4f054c9d4aab0c1c3cf00c8 (diff) |
perf,src: add HistogramBase and internal/histogram.js
Separating this out from the QUIC PR to allow it to be separately
reviewed. The QUIC implementation makes use of the hdr_histogram
for dynamic performance monitoring. This introduces a BaseObject
class that allows the internal histograms to be accessed on the
JavaScript side and adds a generic Histogram class that will be
used by both QUIC and perf_hooks (for the event loop delay
monitoring).
Signed-off-by: James M Snell <jasnell@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/31988
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'src/node_perf.h')
-rw-r--r-- | src/node_perf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_perf.h b/src/node_perf.h index 4f5ca93f223..ac65533a772 100644 --- a/src/node_perf.h +++ b/src/node_perf.h @@ -161,7 +161,7 @@ class ELDHistogram : public HandleWrap, public Histogram { exceeds_ = 0; prev_ = 0; } - int64_t Exceeds() { return exceeds_; } + int64_t Exceeds() const { return exceeds_; } void MemoryInfo(MemoryTracker* tracker) const override { tracker->TrackFieldWithSize("histogram", GetMemorySize()); |