@@ -13,18 +13,18 @@ namespace nodex {
13
13
14
14
uint32_t ProfileNode::UIDCounter = 1 ;
15
15
16
- #if (NODE_MODULE_VERSION >= 42)
17
- static Handle <Value> GetLineTicks (const CpuProfileNode* node) {
16
+ #if (NODE_MODULE_VERSION >= 42)
17
+ static ProfileNode:: Handle <Value> GetLineTicks (const CpuProfileNode* node) {
18
18
NanEscapableScope ();
19
19
20
- unsigned int count = node->GetHitLineCount ();
20
+ uint32_t count = node->GetHitLineCount ();
21
21
v8::CpuProfileNode::LineTick *entries = new v8::CpuProfileNode::LineTick[count];
22
22
bool result = node->GetLineTicks (entries, count);
23
23
24
24
Local<Value> lineTicks;
25
25
if (result) {
26
26
Local<Array> array = NanNew<Array>(count);
27
- for (unsigned int index = 0 ; index < count; index ++) {
27
+ for (uint32_t index = 0 ; index < count; index ++) {
28
28
Local<Object> tick = NanNew<Object>();
29
29
tick->Set (NanNew<String>(" line" ), NanNew<Integer>(entries[index ].line ));
30
30
tick->Set (NanNew<String>(" hitCount" ), NanNew<Integer>(entries[index ].hit_count ));
@@ -69,7 +69,7 @@ namespace nodex {
69
69
profile_node->Set (NanNew<String>(" children" ), children);
70
70
71
71
#if (NODE_MODULE_VERSION >= 42)
72
- auto lineTicks = GetLineTicks (node);
72
+ Handle <Value> lineTicks = GetLineTicks (node);
73
73
if (!lineTicks->IsNull ()) {
74
74
profile_node->Set (NanNew<String>(" lineTicks" ), lineTicks);
75
75
}
0 commit comments