forked from mcollina/native-hdr-histogram
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhdr_histogram_wrap.h
33 lines (25 loc) · 1.05 KB
/
hdr_histogram_wrap.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef HDRHISTOGRAMWRAP_H
#define HDRHISTOGRAMWRAP_H
#include <nan.h>
extern "C" {
#include "hdr_histogram.h"
}
class HdrHistogramWrap : public Nan::ObjectWrap {
public:
static void Init(v8::Local<v8::Object> exports);
private:
~HdrHistogramWrap();
static void New(const Nan::FunctionCallbackInfo<v8::Value>& info);
static void Record(const Nan::FunctionCallbackInfo<v8::Value>& info);
static void Min(const Nan::FunctionCallbackInfo<v8::Value>& info);
static void Max(const Nan::FunctionCallbackInfo<v8::Value>& info);
static void Mean(const Nan::FunctionCallbackInfo<v8::Value>& info);
static void Stddev(const Nan::FunctionCallbackInfo<v8::Value>& info);
static void Percentile(const Nan::FunctionCallbackInfo<v8::Value>& info);
static void Encode(const Nan::FunctionCallbackInfo<v8::Value>& info);
static void Decode(const Nan::FunctionCallbackInfo<v8::Value>& info);
static void Percentiles(const Nan::FunctionCallbackInfo<v8::Value>& info);
static Nan::Persistent<v8::Function> constructor;
struct hdr_histogram *histogram;
};
#endif