forked from heycalmdown/v8-profiler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
graph_node.h
33 lines (25 loc) · 1.17 KB
/
graph_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
33
#ifndef NODE_GRAPH_NODE_
#define NODE_GRAPH_NODE_
#include <v8-profiler.h>
using namespace v8;
namespace nodex {
class GraphNode {
public:
static Handle<Value> New(const HeapGraphNode* node);
private:
static Handle<Value> GetType(Local<String> property, const AccessorInfo& info);
static Handle<Value> GetName(Local<String> property, const AccessorInfo& info);
static Handle<Value> GetId(Local<String> property, const AccessorInfo& info);
static Handle<Value> GetPtr(Local<String> property, const AccessorInfo& info);
static Handle<Value> GetChildrenCount(Local<String> property, const AccessorInfo& info);
static Handle<Value> GetRetainersCount(Local<String> property, const AccessorInfo& info);
static Handle<Value> GetSize(Local<String> property, const AccessorInfo& info);
static Handle<Value> GetChild(const Arguments& args);
static Handle<Value> GetRetainedSize(const Arguments& args);
static Handle<Value> GetRetainer(const Arguments& args);
static Handle<Value> GetDominator(Local<String> property, const AccessorInfo& info);
static void Initialize();
static Persistent<ObjectTemplate> node_template_;
};
}
#endif // NODE_GRAPH_NODE_