VM: the (clear-samples) primitive is unused
parent
bc9f62efde
commit
5826394573
|
@ -782,7 +782,6 @@ CONSTANT: all-primitives {
|
|||
{
|
||||
{ "profiling" ( ? -- ) "sampling_profiler" { object } { } f }
|
||||
{ "(get-samples)" ( -- samples/f ) "get_samples" { } { object } f }
|
||||
{ "(clear-samples)" ( -- ) "clear_samples" { } { } f }
|
||||
}
|
||||
}
|
||||
{
|
||||
|
|
|
@ -14,6 +14,5 @@ TUPLE: boom ;
|
|||
{ } [ [ 300,000 iota [ sq sq sq ] map drop ] profile flat profile. ] unit-test
|
||||
{ } [ [ 300,000 iota [ sq sq sq ] map drop ] profile top-down profile. ] unit-test
|
||||
|
||||
(clear-samples)
|
||||
f raw-profile-data set-global
|
||||
gc
|
||||
|
|
|
@ -9,7 +9,6 @@ IN: tools.profiler.sampling
|
|||
<PRIVATE
|
||||
PRIMITIVE: (get-samples) ( -- samples/f )
|
||||
PRIMITIVE: profiling ( ? -- )
|
||||
PRIMITIVE: (clear-samples) ( -- )
|
||||
PRIVATE>
|
||||
|
||||
SYMBOL: samples-per-second
|
||||
|
|
|
@ -12,7 +12,7 @@ namespace factor {
|
|||
_(bignum_to_fixnum_strict) _(bignum_xor) _(bits_double) _(bits_float) \
|
||||
_(byte_array) _(callback) _(callback_room) \
|
||||
_(callstack_bounds) _(callstack_for) _(callstack_to_array) \
|
||||
_(check_datastack) _(clear_samples) _(clone) _(code_blocks) _(code_room) \
|
||||
_(check_datastack) _(clone) _(code_blocks) _(code_room) \
|
||||
_(compact_gc) _(compute_identity_hashcode) _(context_object) \
|
||||
_(context_object_for) _(current_callback) _(data_room) \
|
||||
_(datastack_for) _(die) _(disable_gc_events) _(dispatch_stats) \
|
||||
|
|
|
@ -148,6 +148,4 @@ void factor_vm::primitive_get_samples() {
|
|||
}
|
||||
}
|
||||
|
||||
void factor_vm::primitive_clear_samples() { clear_samples(); }
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue