|
Class: ProfileTree
Object
|
+--ProfileTree
- Package:
- stx:libbasic3
- Category:
- System-Debugging-Support
- Version:
- rev:
1.26
date: 2022/02/23 08:03:54
- user: cg
- file: ProfileTree.st directory: libbasic3
- module: stx stc-classLibrary: libbasic3
This is is used as a companion to MessageTally.
Instances of it are used to represent a tree of calling chains.
MessageTally could in theory collect the contexts themself,
but these would create much more overhead (materialzing all of them)
copyrightCOPYRIGHT (c) 1995 by Claus Gittinger
All Rights Reserved
This software is furnished under a license and may be used
only in accordance with the terms of that license and with the
inclusion of the above copyright notice. This software may not
be provided or otherwise made available to, or used by, any
other person. No title to or ownership of the software is
hereby transferred.
accessing
-
called
-
return the trees of the called methods/blocks
-
called: aCollection
-
set the trees of the called methods/blocks
-
isBlock
-
return true, if this is a tree for a block-context
-
leafTally
-
return true, if this is a leaf
-
method
( an extension from the stx:libtool package )
-
-
methodClass
-
return the contexts methods class
-
package
( an extension from the stx:libtool package )
-
-
receiver
-
return the contexts receiver
-
receiver: r selector: s class: cls isBlock: blk
-
private tally interface - set receiver, selector, class
and the block flag.
-
selector
-
return the contexts selector
-
totalTally
-
return the total tally counter
adding info
-
addChain: aCallChain
-
merge a chain into the receiver's tree
-
computePercentage: total
-
compute percentages
-
incrementLeafTally
-
count as leaf
-
incrementTotalAndLeafTally
-
count as leaf and total
-
incrementTotalTally
-
count
-
leafTally: aCount
-
set the leafTally count
-
totalTally: aCount
-
set the totalTally count
prettyPrinting
-
printLeafsOn: aStream
-
print all leafNodes statistics on aStream
-
printMethodLeafsOn: aStream
-
print all method leafNodes statistics on aStream
-
printOn: aStream
-
print statistics on aStream
Usage example(s):
self printOn:aStream indent:0
|
-
printOn: aStream indent: i
-
print statistics indented on aStream
-
printSingleLeafOn: aStream
-
print a single nodes statistic on aStream
-
printSingleMethodLeafOn: aStream
-
print a single nodes statistic on aStream
-
printSingleOn: aStream
-
print a single nodes statistic on aStream
private
-
= aProfileTreeNode
-
return true, if the argument tree is for the same method invocation
-
addLeafNodesTo: aCollection
-
add all leaf nodes to aCollection
-
addMethodLeafNodesTo: aCollection
-
add all method leaf nodes to aCollection
-
hash
-
return true, if the argument tree is for the same method invocation
-
sameMethodAsIn: aProfileTreeNode
-
return true, if the argument tree is for the same method invocation
|