eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'TraceBuffer':

Home

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

Class: TraceBuffer


Inheritance:

   Object
   |
   +--Collection
      |
      +--SequenceableCollection
         |
         +--ArrayedCollection
            |
            +--Array
               |
               +--TraceBuffer

Package:
stx:libbasic3
Category:
System-Debugging-Support
Version:
rev: 1.2 date: 2010/12/03 09:08:31
user: stefan
file: TraceBuffer.st directory: libbasic3
module: stx stc-classLibrary: libbasic3

Description:


simple round robin tracebuffer for system debugging.


Class protocol:

instance creation
o  new: n
return an initialized instance


Instance protocol:

dumping
o  dumpLast: n on: aStream

initialization
o  initialize
(comment from inherited method)
just to ignore initialize to objects which do not need it

tracing
o  trace: something


Examples:


|buffer| buffer := self new:100. buffer dumpLast:5 on:Transcript. buffer trace:1. buffer trace:2. buffer trace:3. buffer dumpLast:5 on:Transcript. buffer trace:4. buffer trace:5. buffer dumpLast:5 on:Transcript. buffer trace:6. buffer trace:7. buffer trace:8. buffer dumpLast:5 on:Transcript.

ST/X 7.1.0.0; WebServer 1.663 at exept.de:8081; Sat, 23 Mar 2019 08:27:49 GMT