]> gitweb.factorcode.org Git - factor.git/commitdiff
move counting profiler to tools.profiler.counting
authorJoe Groff <arcata@gmail.com>
Mon, 31 Oct 2011 05:46:07 +0000 (22:46 -0700)
committerJoe Groff <arcata@gmail.com>
Wed, 2 Nov 2011 20:23:09 +0000 (13:23 -0700)
20 files changed:
basis/bootstrap/tools/tools.factor
basis/listener/listener.factor
basis/stack-checker/known-words/known-words.factor
basis/tools/counting-profiler/authors.txt [deleted file]
basis/tools/counting-profiler/counting-profiler-docs.factor [deleted file]
basis/tools/counting-profiler/counting-profiler-tests.factor [deleted file]
basis/tools/counting-profiler/counting-profiler.factor [deleted file]
basis/tools/counting-profiler/summary.txt [deleted file]
basis/tools/counting-profiler/tags.txt [deleted file]
basis/tools/profiler/counting/authors.txt [new file with mode: 0644]
basis/tools/profiler/counting/counting-docs.factor [new file with mode: 0644]
basis/tools/profiler/counting/counting-tests.factor [new file with mode: 0644]
basis/tools/profiler/counting/counting.factor [new file with mode: 0644]
basis/tools/profiler/counting/summary.txt [new file with mode: 0644]
basis/tools/profiler/counting/tags.txt [new file with mode: 0644]
basis/ui/tools/operations/operations-docs.factor
basis/ui/tools/operations/operations.factor
basis/ui/tools/profiler/profiler.factor
basis/ui/tools/tools-docs.factor
core/bootstrap/primitives.factor

index 418a3b6edbd3f8e16a451c78b226b25d8eb29794..731b36d1ce214b22a64ba02f916bf126383eae6c 100644 (file)
@@ -14,7 +14,7 @@ IN: bootstrap.tools
     "tools.disassembler"
     "tools.dispatch"
     "tools.memory"
-    "tools.counting-profiler"
+    "tools.profiler.counting"
     "tools.test"
     "tools.time"
     "tools.threads"
index cdc85a79d784f223658d67894ff01afdc85aa684..0ad02e073b5ab75bbbeab10a97c5295326f0c615 100644 (file)
@@ -175,7 +175,7 @@ SYMBOL: interactive-vocabs
     "tools.dispatch"
     "tools.errors"
     "tools.memory"
-    "tools.counting-profiler"
+    "tools.profiler.counting"
     "tools.test"
     "tools.threads"
     "tools.time"
index 0d7629e83d8767c0a55e40c49c6a3dc905203310..c67b22c507a85497076fd9f0899e91492da3fd55 100644 (file)
@@ -14,7 +14,7 @@ compiler.units system.private combinators tools.memory.private
 combinators.short-circuit locals locals.backend locals.types
 combinators.private stack-checker.values generic.single
 generic.single.private alien.libraries tools.dispatch.private
-tools.counting-profiler.private macros
+tools.profiler.counting.private macros
 stack-checker.alien
 stack-checker.state
 stack-checker.errors
diff --git a/basis/tools/counting-profiler/authors.txt b/basis/tools/counting-profiler/authors.txt
deleted file mode 100644 (file)
index 1901f27..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Slava Pestov
diff --git a/basis/tools/counting-profiler/counting-profiler-docs.factor b/basis/tools/counting-profiler/counting-profiler-docs.factor
deleted file mode 100644 (file)
index 9b993ff..0000000
+++ /dev/null
@@ -1,68 +0,0 @@
-USING: tools.counting-profiler.private tools.time tools.crossref
-help.markup help.syntax quotations io strings words definitions ;
-IN: tools.counting-profiler
-
-ARTICLE: "profiler-limitations" "Profiler limitations"
-"Certain optimizations performed by the compiler can inhibit accurate call counting:"
-{ $list
-    "Calls to open-coded intrinsics are not counted. Certain words are open-coded as inline machine code, and in some cases optimized out altogether; this includes stack shuffling operations, conditionals, and many object allocation operations."
-    { "Calls to " { $link POSTPONE: inline } " words are not counted." }
-    { "Calls to methods which were inlined as a result of type inference are not counted." }
-    "Tail-recursive loops will only count the initial invocation of the word, not every tail call."
-} ;
-
-ARTICLE: "profiling" "Profiling code" 
-"The " { $vocab-link "tools.counting-profiler" } " vocabulary implements a simple call counting profiler."
-$nl
-"Quotations can be passed to a combinator which calls them with the profiler enabled:"
-{ $subsections profile }
-"After a quotation has been profiled, call counts can be presented in various ways:"
-{ $subsections
-    profile.
-    vocab-profile.
-    usage-profile.
-    vocabs-profile.
-    method-profile.
-    "profiler-limitations"
-}
-{ $see-also "ui.tools.profiler" "tools.annotations" "timing" } ;
-
-ABOUT: "profiling"
-
-HELP: counters
-{ $values { "words" "a sequence of words" } { "alist" "an association list mapping words to integers" } }
-{ $description "Outputs an association list of word call counts." } ;
-
-HELP: counters.
-{ $values { "assoc" "an association list mapping words to integers" } }
-{ $description "Prints an association list of call counts to " { $link output-stream } "." } ;
-
-HELP: profile
-{ $values { "quot" quotation } }
-{ $description "Calls the quotation while collecting word call counts, which can then be displayed using " { $link profile. } " or related words." } ;
-
-HELP: profile.
-{ $description "Prints a table of call counts from the most recent invocation of " { $link profile } "." } ;
-
-HELP: vocab-profile.
-{ $values { "vocab" string } }
-{ $description "Prints a table of call counts from the most recent invocation of " { $link profile } ", for words in the " { $snippet "vocab" } " vocabulary only." }
-{ $examples { $code "\"math\" vocab-profile." } } ;
-
-HELP: usage-profile.
-{ $values { "word" word } }
-{ $description "Prints a table of call counts from the most recent invocation of " { $link profile } ", for words which directly call " { $snippet "word" } " only." }
-{ $notes "This word obtains the list of static usages with the " { $link smart-usage } " word, and is not aware of dynamic call history. Consider the following scenario. A word " { $snippet "X" } " can execute word " { $snippet "Y" } " in a conditional branch, and " { $snippet "X" } " is executed many times during the profiling run, but this particular branch executing " { $snippet "Y" } " is never taken. However, some other word does execute " { $snippet "Y" } " multiple times. Then " { $snippet "\\ Y usage-profile." } " will list a number of calls to " { $snippet "X" } ", even though " { $snippet "Y" } " was never executed " { $emphasis "from" } " " { $snippet "X" } "." }
-{ $examples { $code "\\ + usage-profile." } } ;
-
-HELP: vocabs-profile.
-{ $description "Print a table of cumilative call counts for each vocabulary. Vocabularies whose words were not called are supressed from the output." } ;
-
-HELP: method-profile.
-{ $description "Print a table of cumilative call counts for each method. Methods which were not called are supressed from the output." } ;
-
-HELP: profiling
-{ $values { "?" "a boolean" } }
-{ $description "Internal primitive to switch on call counting. This word should not be used; instead use " { $link profile } "." } ;
-
-{ time profile } related-words
diff --git a/basis/tools/counting-profiler/counting-profiler-tests.factor b/basis/tools/counting-profiler/counting-profiler-tests.factor
deleted file mode 100644 (file)
index c05c12b..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-USING: accessors tools.counting-profiler tools.test kernel memory math
-threads alien alien.c-types tools.counting-profiler.private sequences
-compiler.test compiler.units words arrays ;
-IN: tools.counting-profiler.tests
-
-[ t ] [
-    \ length counter>>
-    10 [ { } length drop ] times
-    \ length counter>> =
-] unit-test
-
-[ ] [ [ 3 [ gc ] times ] profile ] unit-test
-
-[ ] [ [ 1000000 sleep ] profile ] unit-test 
-
-[ ] [ profile. ] unit-test
-
-[ ] [ vocabs-profile. ] unit-test
-
-[ ] [ "kernel.private" vocab-profile. ] unit-test
-
-[ ] [ \ + usage-profile. ] unit-test
-
-: callback-test ( -- callback ) void { } cdecl [ ] alien-callback ;
-
-: indirect-test ( callback -- ) void { } cdecl alien-indirect ;
-
-: foobar ( -- ) ;
-
-[
-    [ ] [ callback-test indirect-test ] unit-test
-    foobar
-] profile
-
-[ 1 ] [ \ foobar counter>> ] unit-test
-
-: fooblah ( -- ) { } [ ] like call( -- ) ;
-
-: foobaz ( -- ) fooblah fooblah ;
-
-[ foobaz ] profile
-
-[ 1 ] [ \ foobaz counter>> ] unit-test
-
-[ 2 ] [ \ fooblah counter>> ] unit-test
-
-: recompile-while-profiling-test ( -- ) ;
-
-[ ] [
-    [
-        333 [ recompile-while-profiling-test ] times
-        { recompile-while-profiling-test } compile
-        333 [ recompile-while-profiling-test ] times
-    ] profile
-] unit-test
-
-[ 666 ] [ \ recompile-while-profiling-test counter>> ] unit-test
-
-[ ] [ [ [ ] compile-call ] profile ] unit-test
-
-[ [ gensym execute ] profile ] [ undefined? ] must-fail-with
-
-: crash-bug-1 ( -- x ) "hi" <uninterned-word> ;
-: crash-bug-2 ( -- ) 100000 [ crash-bug-1 drop ] times ;
-
-[ ] [ [ crash-bug-2 ] profile ] unit-test
-
-[ 1 ] [
-    [
-        [ [ ] ( -- ) define-temp ] with-compilation-unit
-        dup execute( -- )
-    ] profile
-    counter>>
-] unit-test
-
-! unwind_native_frames() would fail if profiling was enabled
-! because the jit-profiling stub would clobber a parameter register
-! on x86-64
-[ [ -10 f <array> ] profile ] must-fail
diff --git a/basis/tools/counting-profiler/counting-profiler.factor b/basis/tools/counting-profiler/counting-profiler.factor
deleted file mode 100644 (file)
index d94264d..0000000
+++ /dev/null
@@ -1,83 +0,0 @@
-! Copyright (C) 2007, 2010 Slava Pestov.
-! See http://factorcode.org/license.txt for BSD license.
-USING: accessors words sequences math prettyprint kernel arrays
-io io.styles namespaces assocs kernel.private strings
-combinators sorting math.parser vocabs definitions
-tools.counting-profiler.private tools.crossref continuations generic
-compiler.units compiler.crossref sets classes fry ;
-FROM: sets => members ;
-IN: tools.counting-profiler
-
-: profile ( quot -- )
-    [ t profiling call ] [ f profiling ] [ ] cleanup ; inline
-
-: filter-counts ( alist -- alist' )
-    [ second 0 > ] filter ;
-
-: map-counters ( obj quot -- alist )
-    { } map>assoc filter-counts ; inline
-
-: counters ( words -- alist )
-    [ dup counter>> ] map-counters ;
-
-: cumulative-counters ( obj quot -- alist )
-    '[ dup @ [ counter>> ] map-sum ] map-counters ; inline
-
-: vocab-counters ( -- alist )
-    vocabs [ words [ predicate? not ] filter ] cumulative-counters ;
-
-: generic-counters ( -- alist )
-    all-words [ subwords ] cumulative-counters ;
-
-: methods-on ( class -- methods )
-    dup implementors [ lookup-method ] with map ;
-
-: class-counters ( -- alist )
-    classes [ methods-on ] cumulative-counters ;
-
-: method-counters ( -- alist )
-    all-words [ subwords ] map concat counters ;
-
-: profiler-usage ( word -- words )
-    [ smart-usage [ word? ] filter ]
-    [ generic-call-sites-of keys ]
-    [ effect-dependencies-of keys ]
-    tri 3append members ;
-
-: usage-counters ( word -- alist )
-    profiler-usage counters ;
-
-: counters. ( assoc -- )
-    sort-values simple-table. ;
-
-: profile. ( -- )
-    "Call counts for all words:" print
-    all-words counters counters. ;
-
-: vocab-profile. ( vocab -- )
-    "Call counts for words in the " write
-    dup dup lookup-vocab write-object
-    " vocabulary:" print
-    words counters counters. ;
-
-: usage-profile. ( word -- )
-    "Call counts for words which call " write
-    dup pprint
-    ":" print
-    usage-counters counters. ;
-
-: vocabs-profile. ( -- )
-    "Call counts for all vocabularies:" print
-    vocab-counters counters. ;
-
-: generic-profile. ( -- )
-    "Call counts for methods on generic words:" print
-    generic-counters counters. ;
-
-: class-profile. ( -- )
-    "Call counts for methods on classes:" print
-    class-counters counters. ;
-
-: method-profile. ( -- )
-    "Call counts for all methods:" print
-    method-counters counters. ;
diff --git a/basis/tools/counting-profiler/summary.txt b/basis/tools/counting-profiler/summary.txt
deleted file mode 100644 (file)
index d4f9e20..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Call counting profiler
diff --git a/basis/tools/counting-profiler/tags.txt b/basis/tools/counting-profiler/tags.txt
deleted file mode 100644 (file)
index ef1aab0..0000000
+++ /dev/null
@@ -1 +0,0 @@
-tools
diff --git a/basis/tools/profiler/counting/authors.txt b/basis/tools/profiler/counting/authors.txt
new file mode 100644 (file)
index 0000000..1901f27
--- /dev/null
@@ -0,0 +1 @@
+Slava Pestov
diff --git a/basis/tools/profiler/counting/counting-docs.factor b/basis/tools/profiler/counting/counting-docs.factor
new file mode 100644 (file)
index 0000000..19d3bbe
--- /dev/null
@@ -0,0 +1,68 @@
+USING: tools.profiler.counting.private tools.time tools.crossref
+help.markup help.syntax quotations io strings words definitions ;
+IN: tools.profiler.counting
+
+ARTICLE: "profiler-limitations" "Profiler limitations"
+"Certain optimizations performed by the compiler can inhibit accurate call counting:"
+{ $list
+    "Calls to open-coded intrinsics are not counted. Certain words are open-coded as inline machine code, and in some cases optimized out altogether; this includes stack shuffling operations, conditionals, and many object allocation operations."
+    { "Calls to " { $link POSTPONE: inline } " words are not counted." }
+    { "Calls to methods which were inlined as a result of type inference are not counted." }
+    "Tail-recursive loops will only count the initial invocation of the word, not every tail call."
+} ;
+
+ARTICLE: "profiling" "Profiling code" 
+"The " { $vocab-link "tools.profiler.counting" } " vocabulary implements a simple call counting profiler."
+$nl
+"Quotations can be passed to a combinator which calls them with the profiler enabled:"
+{ $subsections profile }
+"After a quotation has been profiled, call counts can be presented in various ways:"
+{ $subsections
+    profile.
+    vocab-profile.
+    usage-profile.
+    vocabs-profile.
+    method-profile.
+    "profiler-limitations"
+}
+{ $see-also "ui.tools.profiler" "tools.annotations" "timing" } ;
+
+ABOUT: "profiling"
+
+HELP: counters
+{ $values { "words" "a sequence of words" } { "alist" "an association list mapping words to integers" } }
+{ $description "Outputs an association list of word call counts." } ;
+
+HELP: counters.
+{ $values { "assoc" "an association list mapping words to integers" } }
+{ $description "Prints an association list of call counts to " { $link output-stream } "." } ;
+
+HELP: profile
+{ $values { "quot" quotation } }
+{ $description "Calls the quotation while collecting word call counts, which can then be displayed using " { $link profile. } " or related words." } ;
+
+HELP: profile.
+{ $description "Prints a table of call counts from the most recent invocation of " { $link profile } "." } ;
+
+HELP: vocab-profile.
+{ $values { "vocab" string } }
+{ $description "Prints a table of call counts from the most recent invocation of " { $link profile } ", for words in the " { $snippet "vocab" } " vocabulary only." }
+{ $examples { $code "\"math\" vocab-profile." } } ;
+
+HELP: usage-profile.
+{ $values { "word" word } }
+{ $description "Prints a table of call counts from the most recent invocation of " { $link profile } ", for words which directly call " { $snippet "word" } " only." }
+{ $notes "This word obtains the list of static usages with the " { $link smart-usage } " word, and is not aware of dynamic call history. Consider the following scenario. A word " { $snippet "X" } " can execute word " { $snippet "Y" } " in a conditional branch, and " { $snippet "X" } " is executed many times during the profiling run, but this particular branch executing " { $snippet "Y" } " is never taken. However, some other word does execute " { $snippet "Y" } " multiple times. Then " { $snippet "\\ Y usage-profile." } " will list a number of calls to " { $snippet "X" } ", even though " { $snippet "Y" } " was never executed " { $emphasis "from" } " " { $snippet "X" } "." }
+{ $examples { $code "\\ + usage-profile." } } ;
+
+HELP: vocabs-profile.
+{ $description "Print a table of cumilative call counts for each vocabulary. Vocabularies whose words were not called are supressed from the output." } ;
+
+HELP: method-profile.
+{ $description "Print a table of cumilative call counts for each method. Methods which were not called are supressed from the output." } ;
+
+HELP: profiling
+{ $values { "?" "a boolean" } }
+{ $description "Internal primitive to switch on call counting. This word should not be used; instead use " { $link profile } "." } ;
+
+{ time profile } related-words
diff --git a/basis/tools/profiler/counting/counting-tests.factor b/basis/tools/profiler/counting/counting-tests.factor
new file mode 100644 (file)
index 0000000..4d5497a
--- /dev/null
@@ -0,0 +1,79 @@
+USING: accessors tools.profiler.counting tools.test kernel memory math
+threads alien alien.c-types tools.profiler.counting.private sequences
+compiler.test compiler.units words arrays ;
+IN: tools.profiler.counting.tests
+
+[ t ] [
+    \ length counter>>
+    10 [ { } length drop ] times
+    \ length counter>> =
+] unit-test
+
+[ ] [ [ 3 [ gc ] times ] profile ] unit-test
+
+[ ] [ [ 1000000 sleep ] profile ] unit-test 
+
+[ ] [ profile. ] unit-test
+
+[ ] [ vocabs-profile. ] unit-test
+
+[ ] [ "kernel.private" vocab-profile. ] unit-test
+
+[ ] [ \ + usage-profile. ] unit-test
+
+: callback-test ( -- callback ) void { } cdecl [ ] alien-callback ;
+
+: indirect-test ( callback -- ) void { } cdecl alien-indirect ;
+
+: foobar ( -- ) ;
+
+[
+    [ ] [ callback-test indirect-test ] unit-test
+    foobar
+] profile
+
+[ 1 ] [ \ foobar counter>> ] unit-test
+
+: fooblah ( -- ) { } [ ] like call( -- ) ;
+
+: foobaz ( -- ) fooblah fooblah ;
+
+[ foobaz ] profile
+
+[ 1 ] [ \ foobaz counter>> ] unit-test
+
+[ 2 ] [ \ fooblah counter>> ] unit-test
+
+: recompile-while-profiling-test ( -- ) ;
+
+[ ] [
+    [
+        333 [ recompile-while-profiling-test ] times
+        { recompile-while-profiling-test } compile
+        333 [ recompile-while-profiling-test ] times
+    ] profile
+] unit-test
+
+[ 666 ] [ \ recompile-while-profiling-test counter>> ] unit-test
+
+[ ] [ [ [ ] compile-call ] profile ] unit-test
+
+[ [ gensym execute ] profile ] [ undefined? ] must-fail-with
+
+: crash-bug-1 ( -- x ) "hi" <uninterned-word> ;
+: crash-bug-2 ( -- ) 100000 [ crash-bug-1 drop ] times ;
+
+[ ] [ [ crash-bug-2 ] profile ] unit-test
+
+[ 1 ] [
+    [
+        [ [ ] ( -- ) define-temp ] with-compilation-unit
+        dup execute( -- )
+    ] profile
+    counter>>
+] unit-test
+
+! unwind_native_frames() would fail if profiling was enabled
+! because the jit-profiling stub would clobber a parameter register
+! on x86-64
+[ [ -10 f <array> ] profile ] must-fail
diff --git a/basis/tools/profiler/counting/counting.factor b/basis/tools/profiler/counting/counting.factor
new file mode 100644 (file)
index 0000000..92fa931
--- /dev/null
@@ -0,0 +1,83 @@
+! Copyright (C) 2007, 2010 Slava Pestov.
+! See http://factorcode.org/license.txt for BSD license.
+USING: accessors words sequences math prettyprint kernel arrays
+io io.styles namespaces assocs kernel.private strings
+combinators sorting math.parser vocabs definitions
+tools.profiler.counting.private tools.crossref continuations generic
+compiler.units compiler.crossref sets classes fry ;
+FROM: sets => members ;
+IN: tools.profiler.counting
+
+: profile ( quot -- )
+    [ t profiling call ] [ f profiling ] [ ] cleanup ; inline
+
+: filter-counts ( alist -- alist' )
+    [ second 0 > ] filter ;
+
+: map-counters ( obj quot -- alist )
+    { } map>assoc filter-counts ; inline
+
+: counters ( words -- alist )
+    [ dup counter>> ] map-counters ;
+
+: cumulative-counters ( obj quot -- alist )
+    '[ dup @ [ counter>> ] map-sum ] map-counters ; inline
+
+: vocab-counters ( -- alist )
+    vocabs [ words [ predicate? not ] filter ] cumulative-counters ;
+
+: generic-counters ( -- alist )
+    all-words [ subwords ] cumulative-counters ;
+
+: methods-on ( class -- methods )
+    dup implementors [ lookup-method ] with map ;
+
+: class-counters ( -- alist )
+    classes [ methods-on ] cumulative-counters ;
+
+: method-counters ( -- alist )
+    all-words [ subwords ] map concat counters ;
+
+: profiler-usage ( word -- words )
+    [ smart-usage [ word? ] filter ]
+    [ generic-call-sites-of keys ]
+    [ effect-dependencies-of keys ]
+    tri 3append members ;
+
+: usage-counters ( word -- alist )
+    profiler-usage counters ;
+
+: counters. ( assoc -- )
+    sort-values simple-table. ;
+
+: profile. ( -- )
+    "Call counts for all words:" print
+    all-words counters counters. ;
+
+: vocab-profile. ( vocab -- )
+    "Call counts for words in the " write
+    dup dup lookup-vocab write-object
+    " vocabulary:" print
+    words counters counters. ;
+
+: usage-profile. ( word -- )
+    "Call counts for words which call " write
+    dup pprint
+    ":" print
+    usage-counters counters. ;
+
+: vocabs-profile. ( -- )
+    "Call counts for all vocabularies:" print
+    vocab-counters counters. ;
+
+: generic-profile. ( -- )
+    "Call counts for methods on generic words:" print
+    generic-counters counters. ;
+
+: class-profile. ( -- )
+    "Call counts for methods on classes:" print
+    class-counters counters. ;
+
+: method-profile. ( -- )
+    "Call counts for all methods:" print
+    method-counters counters. ;
diff --git a/basis/tools/profiler/counting/summary.txt b/basis/tools/profiler/counting/summary.txt
new file mode 100644 (file)
index 0000000..d4f9e20
--- /dev/null
@@ -0,0 +1 @@
+Call counting profiler
diff --git a/basis/tools/profiler/counting/tags.txt b/basis/tools/profiler/counting/tags.txt
new file mode 100644 (file)
index 0000000..ef1aab0
--- /dev/null
@@ -0,0 +1 @@
+tools
index 4636155eb030bfe713f438c88a68d7b9de5e5e15..ceaf36429afeedf3467b05c9afb3a023fdb98efa 100644 (file)
@@ -1,5 +1,5 @@
 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" } ")." ;
 
index 5696b11db14ae47ac87746856b8255ac60d14ad2..4ed9f53807b91ccec4b08581851e70fea3fbd1c6 100644 (file)
@@ -3,7 +3,7 @@
 USING: continuations definitions generic help.topics threads
 stack-checker summary io.pathnames io.styles kernel namespaces
 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
 compiler.units accessors vocabs.parser macros.expander ui
 ui.tools.browser ui.tools.listener ui.tools.listener.completion
index 415be39802b2237e2238dffbf5c0100a354734d3..24060da95810bd7bf3b8e0d3f32503f479a3b829 100644 (file)
@@ -3,7 +3,7 @@
 USING: accessors arrays assocs combinators.short-circuit
 combinators.smart definitions.icons fry kernel locals
 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.labeled ui.gadgets.labels ui.gadgets.packs
 ui.gadgets.search-tables ui.gadgets.status-bar
index bd4708d2999490e324741be2e83469f6638b0ec6..b4f38c23de2810ae537028070827aa0d372ef40a 100644 (file)
@@ -1,5 +1,5 @@
 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.tools.operations ui.tools.profiler ui.tools.common vocabs see
 help.tips ;
index fddf3bc2fcdb56f3d6a88d4331d78f1936b1ee56..adba748606e56c0fbcb05f2d00805268d20af0af 100755 (executable)
@@ -104,7 +104,7 @@ call( -- )
     "threads.private"
     "tools.dispatch.private"
     "tools.memory.private"
-    "tools.counting-profiler.private"
+    "tools.profiler.counting.private"
     "words"
     "words.private"
     "vectors"
@@ -547,7 +547,7 @@ tuple
     { "retainstack-for" "threads.private" "primitive_retainstack_for" ( context -- array ) }
     { "dispatch-stats" "tools.dispatch.private" "primitive_dispatch_stats" ( -- 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 -- ? ) }
     { "word-code" "words" "primitive_word_code" ( word -- start end ) }
     { "(word)" "words.private" "primitive_word" ( name vocab hashcode -- word ) }