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.26 date: 2022/02/23 08:03:54
user: cg
file: ProfileTree.st directory: libbasic3
module: stx stc-classLibrary: libbasic3

Description:


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)

copyright

COPYRIGHT (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.

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.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Thu, 21 Nov 2024 12:12:56 GMT