move counting profiler to tools.profiler.counting
parent
e10c3183c8
commit
eac90675c0
|
@ -14,7 +14,7 @@ IN: bootstrap.tools
|
||||||
"tools.disassembler"
|
"tools.disassembler"
|
||||||
"tools.dispatch"
|
"tools.dispatch"
|
||||||
"tools.memory"
|
"tools.memory"
|
||||||
"tools.counting-profiler"
|
"tools.profiler.counting"
|
||||||
"tools.test"
|
"tools.test"
|
||||||
"tools.time"
|
"tools.time"
|
||||||
"tools.threads"
|
"tools.threads"
|
||||||
|
|
|
@ -175,7 +175,7 @@ SYMBOL: interactive-vocabs
|
||||||
"tools.dispatch"
|
"tools.dispatch"
|
||||||
"tools.errors"
|
"tools.errors"
|
||||||
"tools.memory"
|
"tools.memory"
|
||||||
"tools.counting-profiler"
|
"tools.profiler.counting"
|
||||||
"tools.test"
|
"tools.test"
|
||||||
"tools.threads"
|
"tools.threads"
|
||||||
"tools.time"
|
"tools.time"
|
||||||
|
|
|
@ -14,7 +14,7 @@ compiler.units system.private combinators tools.memory.private
|
||||||
combinators.short-circuit locals locals.backend locals.types
|
combinators.short-circuit locals locals.backend locals.types
|
||||||
combinators.private stack-checker.values generic.single
|
combinators.private stack-checker.values generic.single
|
||||||
generic.single.private alien.libraries tools.dispatch.private
|
generic.single.private alien.libraries tools.dispatch.private
|
||||||
tools.counting-profiler.private macros
|
tools.profiler.counting.private macros
|
||||||
stack-checker.alien
|
stack-checker.alien
|
||||||
stack-checker.state
|
stack-checker.state
|
||||||
stack-checker.errors
|
stack-checker.errors
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
USING: tools.counting-profiler.private tools.time tools.crossref
|
USING: tools.profiler.counting.private tools.time tools.crossref
|
||||||
help.markup help.syntax quotations io strings words definitions ;
|
help.markup help.syntax quotations io strings words definitions ;
|
||||||
IN: tools.counting-profiler
|
IN: tools.profiler.counting
|
||||||
|
|
||||||
ARTICLE: "profiler-limitations" "Profiler limitations"
|
ARTICLE: "profiler-limitations" "Profiler limitations"
|
||||||
"Certain optimizations performed by the compiler can inhibit accurate call counting:"
|
"Certain optimizations performed by the compiler can inhibit accurate call counting:"
|
||||||
|
@ -12,7 +12,7 @@ ARTICLE: "profiler-limitations" "Profiler limitations"
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
ARTICLE: "profiling" "Profiling code"
|
ARTICLE: "profiling" "Profiling code"
|
||||||
"The " { $vocab-link "tools.counting-profiler" } " vocabulary implements a simple call counting profiler."
|
"The " { $vocab-link "tools.profiler.counting" } " vocabulary implements a simple call counting profiler."
|
||||||
$nl
|
$nl
|
||||||
"Quotations can be passed to a combinator which calls them with the profiler enabled:"
|
"Quotations can be passed to a combinator which calls them with the profiler enabled:"
|
||||||
{ $subsections profile }
|
{ $subsections profile }
|
|
@ -1,7 +1,7 @@
|
||||||
USING: accessors tools.counting-profiler tools.test kernel memory math
|
USING: accessors tools.profiler.counting tools.test kernel memory math
|
||||||
threads alien alien.c-types tools.counting-profiler.private sequences
|
threads alien alien.c-types tools.profiler.counting.private sequences
|
||||||
compiler.test compiler.units words arrays ;
|
compiler.test compiler.units words arrays ;
|
||||||
IN: tools.counting-profiler.tests
|
IN: tools.profiler.counting.tests
|
||||||
|
|
||||||
[ t ] [
|
[ t ] [
|
||||||
\ length counter>>
|
\ length counter>>
|
|
@ -3,10 +3,10 @@
|
||||||
USING: accessors words sequences math prettyprint kernel arrays
|
USING: accessors words sequences math prettyprint kernel arrays
|
||||||
io io.styles namespaces assocs kernel.private strings
|
io io.styles namespaces assocs kernel.private strings
|
||||||
combinators sorting math.parser vocabs definitions
|
combinators sorting math.parser vocabs definitions
|
||||||
tools.counting-profiler.private tools.crossref continuations generic
|
tools.profiler.counting.private tools.crossref continuations generic
|
||||||
compiler.units compiler.crossref sets classes fry ;
|
compiler.units compiler.crossref sets classes fry ;
|
||||||
FROM: sets => members ;
|
FROM: sets => members ;
|
||||||
IN: tools.counting-profiler
|
IN: tools.profiler.counting
|
||||||
|
|
||||||
: profile ( quot -- )
|
: profile ( quot -- )
|
||||||
[ t profiling call ] [ f profiling ] [ ] cleanup ; inline
|
[ t profiling call ] [ f profiling ] [ ] cleanup ; inline
|
|
@ -1,5 +1,5 @@
|
||||||
USING: help.tips help.markup help.syntax ui.operations
|
USING: help.tips help.markup help.syntax ui.operations
|
||||||
tools.walker tools.time tools.counting-profiler ui.tools.operations ;
|
tools.walker tools.time tools.profiler.counting ui.tools.operations ;
|
||||||
|
|
||||||
TIP: "Press " { $operation com-stack-effect } " to print the stack effect of the code in the input field without executing it (" { $link "inference" } ")." ;
|
TIP: "Press " { $operation com-stack-effect } " to print the stack effect of the code in the input field without executing it (" { $link "inference" } ")." ;
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
USING: continuations definitions generic help.topics threads
|
USING: continuations definitions generic help.topics threads
|
||||||
stack-checker summary io.pathnames io.styles kernel namespaces
|
stack-checker summary io.pathnames io.styles kernel namespaces
|
||||||
parser prettyprint quotations tools.crossref tools.annotations
|
parser prettyprint quotations tools.crossref tools.annotations
|
||||||
editors tools.counting-profiler tools.test tools.time tools.walker vocabs
|
editors tools.profiler.counting tools.test tools.time tools.walker vocabs
|
||||||
vocabs.loader words sequences classes compiler.errors
|
vocabs.loader words sequences classes compiler.errors
|
||||||
compiler.units accessors vocabs.parser macros.expander ui
|
compiler.units accessors vocabs.parser macros.expander ui
|
||||||
ui.tools.browser ui.tools.listener ui.tools.listener.completion
|
ui.tools.browser ui.tools.listener ui.tools.listener.completion
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
USING: accessors arrays assocs combinators.short-circuit
|
USING: accessors arrays assocs combinators.short-circuit
|
||||||
combinators.smart definitions.icons fry kernel locals
|
combinators.smart definitions.icons fry kernel locals
|
||||||
math.order models models.search models.sort present see
|
math.order models models.search models.sort present see
|
||||||
sequences tools.counting-profiler ui.baseline-alignment ui.commands
|
sequences tools.profiler.counting ui.baseline-alignment ui.commands
|
||||||
ui.gadgets ui.gadgets.borders ui.gadgets.buttons
|
ui.gadgets ui.gadgets.borders ui.gadgets.buttons
|
||||||
ui.gadgets.labeled ui.gadgets.labels ui.gadgets.packs
|
ui.gadgets.labeled ui.gadgets.labels ui.gadgets.packs
|
||||||
ui.gadgets.search-tables ui.gadgets.status-bar
|
ui.gadgets.search-tables ui.gadgets.status-bar
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
USING: editors help.markup help.syntax summary inspector io io.styles
|
USING: editors help.markup help.syntax summary inspector io io.styles
|
||||||
listener parser prettyprint tools.counting-profiler tools.walker ui.commands
|
listener parser prettyprint tools.profiler.counting tools.walker ui.commands
|
||||||
ui.gadgets.panes ui.gadgets.presentations ui.operations
|
ui.gadgets.panes ui.gadgets.presentations ui.operations
|
||||||
ui.tools.operations ui.tools.profiler ui.tools.common vocabs see
|
ui.tools.operations ui.tools.profiler ui.tools.common vocabs see
|
||||||
help.tips ;
|
help.tips ;
|
||||||
|
|
|
@ -104,7 +104,7 @@ call( -- )
|
||||||
"threads.private"
|
"threads.private"
|
||||||
"tools.dispatch.private"
|
"tools.dispatch.private"
|
||||||
"tools.memory.private"
|
"tools.memory.private"
|
||||||
"tools.counting-profiler.private"
|
"tools.profiler.counting.private"
|
||||||
"words"
|
"words"
|
||||||
"words.private"
|
"words.private"
|
||||||
"vectors"
|
"vectors"
|
||||||
|
@ -547,7 +547,7 @@ tuple
|
||||||
{ "retainstack-for" "threads.private" "primitive_retainstack_for" ( context -- array ) }
|
{ "retainstack-for" "threads.private" "primitive_retainstack_for" ( context -- array ) }
|
||||||
{ "dispatch-stats" "tools.dispatch.private" "primitive_dispatch_stats" ( -- stats ) }
|
{ "dispatch-stats" "tools.dispatch.private" "primitive_dispatch_stats" ( -- stats ) }
|
||||||
{ "reset-dispatch-stats" "tools.dispatch.private" "primitive_reset_dispatch_stats" ( -- ) }
|
{ "reset-dispatch-stats" "tools.dispatch.private" "primitive_reset_dispatch_stats" ( -- ) }
|
||||||
{ "profiling" "tools.counting-profiler.private" "primitive_counting_profiler" ( ? -- ) }
|
{ "profiling" "tools.profiler.counting.private" "primitive_counting_profiler" ( ? -- ) }
|
||||||
{ "optimized?" "words" "primitive_optimized_p" ( word -- ? ) }
|
{ "optimized?" "words" "primitive_optimized_p" ( word -- ? ) }
|
||||||
{ "word-code" "words" "primitive_word_code" ( word -- start end ) }
|
{ "word-code" "words" "primitive_word_code" ( word -- start end ) }
|
||||||
{ "(word)" "words.private" "primitive_word" ( name vocab hashcode -- word ) }
|
{ "(word)" "words.private" "primitive_word" ( name vocab hashcode -- word ) }
|
||||||
|
|
Loading…
Reference in New Issue