From 5b6fb25ffd87eb44107397b35255615054f2ea60 Mon Sep 17 00:00:00 2001 From: Joe Groff Date: Sun, 30 Oct 2011 23:05:54 -0700 Subject: [PATCH] add sampling profiler primitives for bootstrap --- core/bootstrap/primitives.factor | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/bootstrap/primitives.factor b/core/bootstrap/primitives.factor index adba748606..bb99bf6261 100755 --- a/core/bootstrap/primitives.factor +++ b/core/bootstrap/primitives.factor @@ -105,6 +105,7 @@ call( -- ) "tools.dispatch.private" "tools.memory.private" "tools.profiler.counting.private" + "tools.profiler.sampling.private" "words" "words.private" "vectors" @@ -551,6 +552,9 @@ tuple { "optimized?" "words" "primitive_optimized_p" ( word -- ? ) } { "word-code" "words" "primitive_word_code" ( word -- start end ) } { "(word)" "words.private" "primitive_word" ( name vocab hashcode -- word ) } + { "profiling" "tools.profiler.sampling.private" "primitive_sampling_profiler" ( ? -- ) } + { "(get-samples)" "tools.profiler.sampling.private" "primitive_get_samples" ( -- samples/f ) } + { "(clear-samples)" "tools.profiler.sampling.private" "primitive_clear_samples" ( -- samples/f ) } } [ first4 make-primitive ] each ! Bump build number