forked from c4milo/v8-profiler
-
Notifications
You must be signed in to change notification settings - Fork 1
/
profile_node.h
32 lines (24 loc) · 1.18 KB
/
profile_node.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
#ifndef NODE_PROFILE_NODE_
#define NODE_PROFILE_NODE_
#include <v8-profiler.h>
using namespace v8;
namespace nodex {
class ProfileNode {
public:
static Handle<Value> New(const CpuProfileNode* node);
private:
static Handle<Value> GetFunctionName(Local<String> property, const AccessorInfo& info);
static Handle<Value> GetScriptName(Local<String> property, const AccessorInfo& info);
static Handle<Value> GetLineNumber(Local<String> property, const AccessorInfo& info);
static Handle<Value> GetTotalTime(Local<String> property, const AccessorInfo& info);
static Handle<Value> GetSelfTime(Local<String> property, const AccessorInfo& info);
static Handle<Value> GetTotalSamplesCount(Local<String> property, const AccessorInfo& info);
static Handle<Value> GetSelfSamplesCount(Local<String> property, const AccessorInfo& info);
static Handle<Value> GetCallUid(Local<String> property, const AccessorInfo& info);
static Handle<Value> GetChildrenCount(Local<String> property, const AccessorInfo& info);
static Handle<Value> GetChild(const Arguments& args);
static void Initialize();
static Persistent<ObjectTemplate> node_template_;
};
}
#endif // NODE_PROFILE_NODE_