vm: actually collect samples and add primitives...
parent
5b6fb25ffd
commit
27d7e4af53
|
@ -177,6 +177,7 @@ void factor_vm::enqueue_safepoint_sample()
|
|||
FACTOR_ATOMIC_ADD(&safepoint_sample_count, 1);
|
||||
if (current_gc)
|
||||
FACTOR_ATOMIC_ADD(&safepoint_gc_sample_count, 1);
|
||||
code->guard_safepoint();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -37,6 +37,7 @@ namespace factor
|
|||
_(callstack_for) \
|
||||
_(callstack_to_array) \
|
||||
_(check_datastack) \
|
||||
_(clear_samples) \
|
||||
_(clone) \
|
||||
_(code_blocks) \
|
||||
_(code_room) \
|
||||
|
@ -90,6 +91,7 @@ namespace factor
|
|||
_(ftell) \
|
||||
_(full_gc) \
|
||||
_(fwrite) \
|
||||
_(get_samples) \
|
||||
_(identity_hashcode) \
|
||||
_(innermost_stack_frame_executing) \
|
||||
_(innermost_stack_frame_scan) \
|
||||
|
|
Loading…
Reference in New Issue