eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'ProfileTree':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: ProfileTree


Inheritance:

   Object
   |
   +--ProfileTree

Package:
stx:libbasic3
Category:
System-Debugging-Support
Version:
rev: 1.22 date: 2016/09/30 14:45:54
user: stefan
file: ProfileTree.st directory: libbasic3
module: stx stc-classLibrary: libbasic3
Author:
Claus Gittinger

Description:


This is is used as a companion to MessageTally.
Instances of it are used to represent a calling chain.
(MessageTally could have used the contexts themself, but these
 may create more overhead)


Related information:

    MessageTally
    CallChain
    MessageTracer
    AbstractTime

Instance protocol:

accessing
o  called
return the trees of the called methods/blocks

o  called: aCollection
set the trees of the called methods/blocks

o  isBlock
return true, if this is a tree for a block-context

o  leafTally
return true, if this is a leaf

o  method
( an extension from the stx:libtool package )

o  methodClass
return the contexts methods class

o  package
( an extension from the stx:libtool package )

o  receiver
return the contexts receiver

o  receiver: r selector: s class: cls isBlock: blk
private tally interface - set receiver, selector, class
and the block flag.

o  selector
return the contexts selector

o  totalTally
return the total tally counter

adding info
o  addChain: aCallChain
merge a chain into the receiver's tree

o  computePercentage: total
compute percentages

o  incrementLeafTally
count as leaf

o  incrementTotalAndLeafTally
count as leaf and total

o  incrementTotalTally
count

o  leafTally: aCount
set the leafTally count

o  totalTally: aCount
set the totalTally count

prettyPrinting
o  printLeafsOn: aStream
print all leafNodes statistics on aStream

o  printMethodLeafsOn: aStream
print all method leafNodes statistics on aStream

o  printOn: aStream
print statistics on aStream

usage example(s):

self printOn:aStream indent:0

o  printOn: aStream indent: i
print statistics indented on aStream

o  printSingleLeafOn: aStream
print a single nodes statistic on aStream

o  printSingleMethodLeafOn: aStream
print a single nodes statistic on aStream

o  printSingleOn: aStream
print a single nodes statistic on aStream

private
o  = aProfileTreeNode
return true, if the argument tree is for the same method invocation

o  addLeafNodesTo: aCollection
add all leaf nodes to aCollection

o  addMethodLeafNodesTo: aCollection
add all method leaf nodes to aCollection

o  hash
return true, if the argument tree is for the same method invocation

o  sameMethodAsIn: aProfileTreeNode
return true, if the argument tree is for the same method invocation



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Fri, 19 Apr 2024 22:47:10 GMT