|
Class: CallChain
Object
|
+--CallChain
- Package:
- stx:libbasic3
- Category:
- System-Debugging-Support
- Version:
- rev:
1.16
date: 2021/01/20 10:24:14
- user: cg
- file: CallChain.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 calling chain.
They are simply holders for some of the context's values - no
intelligence here.
MessageTally could collect contexts themself, but this
would create much more overhead (materializing 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.
instance creation
-
callChainTo: aContext stopAtCallerForWhich: aBlock
-
entered whenever the probed block gets interrupted;
generate a chain of callInfo objects to aContext,
collecting all senders up to one for which aBlock returns true.
This block typically checks for the messageTally invoke context
(and its call chain is typically not of interest for the profile)
accessing
-
isBlock
-
return true, if this is a callChain for a block-context
-
methodClass
-
return the contexts methods class
-
receiver
-
return the contexts receiver
-
receiver: r selector: s class: cls
-
private tally interface - set receiver, selector and class.
the block flag is cleared.
-
receiver: r selector: s class: cls isBlock: blk
-
private tally interface - set receiver, selector, class
and the block flag.
-
rest
-
return the chains link
-
rest: r
-
set the chains link
-
selector
-
return the contexts selector
comparing
-
= someInfo
-
return true, if the argument chain is for the same method invocation
-
hash
-
return an integer useful for hashing on the receiver;
redefined since = is redefined here.
|