Squeak Class Documentation category index | class index  
 
MessageTally
  category: Tools-Debugger
  superclass: Magnitude
  subclasses:

My instances observe and report the amount of time spent in methods. Observing a method implies observing all messages it sends.

Q: How do you interpret MessageTally>>tallySends
A: The methods #tallySends and #spyOn: measure two very different quantities, but broken down in the same who-called-who format. #spyOn: is approximate, but more indicative of real time spent, whereas #tallySends is exact and a precise record of how many times each method got executed.

instance methods
  collecting leaves
  bump:
bump:fromSender:
into:fromSender:
leavesInto:fromSender:

  comparing
  <
=
>
hash
isPrimitives
sonsOver:
species

  initialize-release
  close
spyEvery:on:
spyEvery:onProcess:forMilliseconds:

  printing
  fullPrintOn:tallyExact:orThreshold:
leavesPrintOn:tallyExact:orThreshold:
printOn:
printOn:total:totalTime:tallyExact:
printSenderCountsOn:
treePrintOn:tabs:thisTab:total:totalTime:tallyExact:orThreshold:

  private
  class:method:
copyWithTally:
method
primitives:

  reporting
  report:
report:cutoff:
reportGCStatsOn:
tally
time

  tallying
  bumpBy:
tally:by:
tallyPath:by:

class methods
  spying
  spyOn:
spyOn:toFileNamed:
spyOnProcess:forMilliseconds:
spyOnProcess:forMilliseconds:toFileNamed:
tallySends:
tallySendsTo:inBlock:showTree:
time:

instance methods
  collecting leaves top  
 

bump:


 

bump:fromSender:

Add this hitCount to the total, and include a reference to the
sender responsible for the increment


 

into:fromSender:


 

leavesInto:fromSender:


  comparing top  
 

<

Refer to the comment in Magnitude|<.


 

=

Compare the receiver with the argument and answer with true if the
receiver is equal to the argument. Otherwise answer false.


 

>

Refer to the comment in Magnitude|>.


 

hash

Hash is reimplemented because = is implemented.


 

isPrimitives

Detect pseudo node used to carry tally of local hits


 

sonsOver:


 

species

Answer the preferred class for reconstructing the receiver. For example,
collections create new collections whenever enumeration messages such as
collect: or select: are invoked. The new kind of collection is determined by
the species of the original collection. Species and class are not always the
same. For example, the species of Interval is Array.


  initialize-release top  
 

close


 

spyEvery:on:

Create a spy and spy on the given block at the specified rate.


 

spyEvery:onProcess:forMilliseconds:

Create a spy and spy on the given process at the specified rate.


  printing top  
 

fullPrintOn:tallyExact:orThreshold:


 

leavesPrintOn:tallyExact:orThreshold:


 

printOn:

Append to the argument, aStream, a sequence of characters that
identifies the receiver.


 

printOn:total:totalTime:tallyExact:


 

printSenderCountsOn:


 

treePrintOn:tabs:thisTab:total:totalTime:tallyExact:orThreshold:


  private top  
 

class:method:


 

copyWithTally:


 

method


 

primitives:


  reporting top  
 

report:

Print a report, with cutoff percentage of each element of the tree
(leaves, roots, tree)=2, on the stream, strm.


 

report:cutoff:


 

reportGCStatsOn:


 

tally

Answer the receiver's number of tally.


 

time

Answer the receiver's run time.


  tallying top  
 

bumpBy:


 

tally:by:

Explicitly tally the specified context and its stack.


 

tallyPath:by:


class methods
  spying top  
 

spyOn:

MessageTally spyOn: [100 timesRepeat: [3.14159 printString]]


 

spyOn:toFileNamed:

Spy on the evaluation of aBlock. Write the data collected on a file
named fileName.


 

spyOnProcess:forMilliseconds:

| p |
p _ [100000 timesRepeat: [3.14159 printString]] fork.
(Delay forMilliseconds: 100) wait.
MessageTally spyOnProcess: p forMilliseconds: 1000


 

spyOnProcess:forMilliseconds:toFileNamed:

Spy on the evaluation of aProcess. Write the data collected on a file
named fileName. Will overwrite fileName


 

tallySends:

MessageTally tallySends: [3.14159 printString]


 

tallySendsTo:inBlock:showTree:

MessageTally tallySends: [3.14159 printString]


 

time: