forked from node-inspector/v8-profiler
-
Notifications
You must be signed in to change notification settings - Fork 5
/
snapshot.h
39 lines (28 loc) · 1.27 KB
/
snapshot.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
34
35
36
37
38
39
#ifndef NODE_SNAPSHOT_
#define NODE_SNAPSHOT_
#include <v8-profiler.h>
using namespace v8;
namespace nodex {
class Snapshot {
public:
static Handle<Value> New(const HeapSnapshot* snapshot);
private:
Snapshot(const v8::HeapSnapshot* snapshot)
: m_snapshot(snapshot){}
const v8::HeapSnapshot* m_snapshot;
static Handle<Value> GetUid(Local<String> property, const AccessorInfo& info);
static Handle<Value> GetTitle(Local<String> property, const AccessorInfo& info);
static Handle<Value> GetMaxSnapshotJSObjectId(Local<String> property, const AccessorInfo& info);
static Handle<Value> GetRoot(Local<String> property, const AccessorInfo& info);
static Handle<Value> GetType(Local<String> property, const AccessorInfo& info);
static Handle<Value> GetNodesCount(Local<String> property, const AccessorInfo& info);
static Handle<Value> GetNodeById(const Arguments& args);
static Handle<Value> GetNode(const Arguments& args);
static Handle<Value> Delete(const Arguments& args);
static Handle<Value> Serialize(const Arguments& args);
static Handle<Value> SnapshotObjectId(const Arguments& args);
static void Initialize();
static Persistent<ObjectTemplate> snapshot_template_;
};
} //namespace nodex
#endif // NODE_SNAPSHOT_