-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathcpu_profiler.h
More file actions
23 lines (18 loc) · 756 Bytes
/
Copy pathcpu_profiler.h
File metadata and controls
23 lines (18 loc) · 756 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef NODE_CPU_PROFILER_
#define NODE_CPU_PROFILER_
#include "v8-profiler.h"
namespace nodex {
class CpuProfiler {
public:
static void Initialize(v8::Isolate* isolate, v8::Handle<v8::Object> target);
CpuProfiler();
virtual ~CpuProfiler();
protected:
static void GetProfilesCount(const v8::FunctionCallbackInfo<v8::Value>& args);
static void GetProfile(const v8::FunctionCallbackInfo<v8::Value>& args);
static void StartProfiling(const v8::FunctionCallbackInfo<v8::Value>& args);
static void StopProfiling(const v8::FunctionCallbackInfo<v8::Value>& args);
static void DeleteAllProfiles(const v8::FunctionCallbackInfo<v8::Value>& args);
};
} //namespace nodex
#endif // NODE_CPU_PROFILER_H