|
1 | 1 | #include "histogram.h" // NOLINT(build/include_inline)
|
2 |
| -#include "histogram-inl.h" |
3 | 2 | #include "base_object-inl.h"
|
| 3 | +#include "histogram-inl.h" |
4 | 4 | #include "memory_tracker-inl.h"
|
5 | 5 | #include "node_errors.h"
|
| 6 | +#include "node_external_reference.h" |
| 7 | + |
6 | 8 | namespace node {
|
7 | 9 |
|
8 | 10 | using v8::BigInt;
|
@@ -197,6 +199,21 @@ Local<FunctionTemplate> HistogramBase::GetConstructorTemplate(
|
197 | 199 | return tmpl;
|
198 | 200 | }
|
199 | 201 |
|
| 202 | +void HistogramBase::RegisterExternalReferences( |
| 203 | + ExternalReferenceRegistry* registry) { |
| 204 | + registry->Register(New); |
| 205 | + registry->Register(GetExceeds); |
| 206 | + registry->Register(GetMin); |
| 207 | + registry->Register(GetMax); |
| 208 | + registry->Register(GetMean); |
| 209 | + registry->Register(GetStddev); |
| 210 | + registry->Register(GetPercentile); |
| 211 | + registry->Register(GetPercentiles); |
| 212 | + registry->Register(DoReset); |
| 213 | + registry->Register(Record); |
| 214 | + registry->Register(RecordDelta); |
| 215 | +} |
| 216 | + |
200 | 217 | void HistogramBase::Initialize(Environment* env, Local<Object> target) {
|
201 | 218 | env->SetConstructorFunction(target, "Histogram", GetConstructorTemplate(env));
|
202 | 219 | }
|
@@ -240,6 +257,20 @@ Local<FunctionTemplate> IntervalHistogram::GetConstructorTemplate(
|
240 | 257 | return tmpl;
|
241 | 258 | }
|
242 | 259 |
|
| 260 | +void IntervalHistogram::RegisterExternalReferences( |
| 261 | + ExternalReferenceRegistry* registry) { |
| 262 | + registry->Register(GetExceeds); |
| 263 | + registry->Register(GetMin); |
| 264 | + registry->Register(GetMax); |
| 265 | + registry->Register(GetMean); |
| 266 | + registry->Register(GetStddev); |
| 267 | + registry->Register(GetPercentile); |
| 268 | + registry->Register(GetPercentiles); |
| 269 | + registry->Register(DoReset); |
| 270 | + registry->Register(Start); |
| 271 | + registry->Register(Stop); |
| 272 | +} |
| 273 | + |
243 | 274 | IntervalHistogram::IntervalHistogram(
|
244 | 275 | Environment* env,
|
245 | 276 | Local<Object> wrap,
|
|
0 commit comments