1
- // 2020-06-16T17:09:23.251 -07:00 binding hdr_histogram.c (GenerateDefinitions)
1
+ // 2020-06-26T15:58:56.322 -07:00 binding hdr_histogram.c (GenerateDefinitions)
2
2
// © Copyright 2020 Simply Inspired Software, Inc., dba inspiredware
3
- // Created by the inspiredware automated binding generator — www.inspiredware.com
3
+ // Released under the MIT License — https://en.wikipedia.org/wiki/MIT_License
4
+ // Created by the inspiredware automated binding generator — https://inspiredware.com
4
5
5
6
#include " hdr_histogram.h"
6
7
#include " napi-ingress.h"
@@ -66,7 +67,7 @@ Napi::Value HdrHistogram::recordCorrectedValuesAtomic (const Napi::CallbackInfo&
66
67
return jsRetVal;
67
68
}
68
69
69
- Napi::Value HdrHistogram::record (const Napi::CallbackInfo& info) {
70
+ Napi::Value HdrHistogram::recordValue (const Napi::CallbackInfo& info) {
70
71
Napi::Env env = info.Env ();
71
72
long long value = getInt64<long long > (info[0 ]);
72
73
_Bool retVal = hdr_record_value (histogram, value);
@@ -186,14 +187,6 @@ Napi::Value HdrHistogram::nextNonEquivalentValue (const Napi::CallbackInfo& info
186
187
return jsRetVal;
187
188
}
188
189
189
- Napi::Value HdrHistogram::sizeOfEquivalentValueRange (const Napi::CallbackInfo& info) {
190
- Napi::Env env = info.Env ();
191
- long long value = getInt64<long long > (info[0 ]);
192
- long long retVal = hdr_size_of_equivalent_value_range (histogram, value);
193
- Napi::Value jsRetVal = Number::New (env, retVal);
194
- return jsRetVal;
195
- }
196
-
197
190
Napi::Value HdrHistogram::percentile (const Napi::CallbackInfo& info) {
198
191
Napi::Env env = info.Env ();
199
192
double percentile = getDouble<double > (info[0 ]);
@@ -216,13 +209,6 @@ Napi::Value HdrHistogram::reset (const Napi::CallbackInfo& info) {
216
209
return jsRetVal;
217
210
}
218
211
219
- Napi::Value HdrHistogram::resetInternalCounters (const Napi::CallbackInfo& info) {
220
- Napi::Env env = info.Env ();
221
- hdr_reset_internal_counters (histogram);
222
- Napi::Value jsRetVal = env.Undefined ();
223
- return jsRetVal;
224
- }
225
-
226
212
Napi::Value HdrHistogram::getEncoded (const Napi::CallbackInfo& info) {
227
213
Napi::Env env = info.Env ();
228
214
char * encoded = NULL ;
@@ -288,18 +274,16 @@ Napi::Function HdrHistogram::GetClassDef (Napi::Env env) { // static
288
274
InstanceMethod (" recordCorrectedValueAtomic" , &HdrHistogram::recordCorrectedValueAtomic),
289
275
InstanceMethod (" recordCorrectedValues" , &HdrHistogram::recordCorrectedValues),
290
276
InstanceMethod (" recordCorrectedValuesAtomic" , &HdrHistogram::recordCorrectedValuesAtomic),
291
- InstanceMethod (" record " , &HdrHistogram::record ),
277
+ InstanceMethod (" recordValue " , &HdrHistogram::recordValue ),
292
278
InstanceMethod (" recordAtomic" , &HdrHistogram::recordAtomic),
293
279
InstanceMethod (" recordValues" , &HdrHistogram::recordValues),
294
280
InstanceMethod (" recordValuesAtomic" , &HdrHistogram::recordValuesAtomic),
295
281
InstanceMethod (" reset" , &HdrHistogram::reset),
296
- InstanceMethod (" resetInternalCounters" , &HdrHistogram::resetInternalCounters),
297
282
InstanceMethod (" stddev" , &HdrHistogram::stddev),
298
283
InstanceMethod (" percentile" , &HdrHistogram::percentile),
299
284
InstanceMethod (" valuesAreEquivalent" , &HdrHistogram::valuesAreEquivalent),
300
285
InstanceMethod (" nextNonEquivalentValue" , &HdrHistogram::nextNonEquivalentValue),
301
286
InstanceMethod (" medianEquivalentValue" , &HdrHistogram::medianEquivalentValue),
302
- InstanceMethod (" sizeOfEquivalentValueRange" , &HdrHistogram::sizeOfEquivalentValueRange),
303
287
InstanceMethod (" getEncoded" , &HdrHistogram::getEncoded),
304
288
InstanceMethod (" setEncoded" , &HdrHistogram::setEncoded),
305
289
InstanceAccessor (" highestTrackableValue" , &HdrHistogram::getHighestTrackableValue, nullptr , napi_default),
0 commit comments