Smalltalk/X WebserverDocumentation of class 'TraceBuffer': | |
Class: TraceBufferInheritance:Object | +--Collection | +--SequenceableCollection | +--ArrayedCollection | +--Array | +--TraceBuffer
Description:simple round robin tracebuffer for system debugging. Create a traceBuffer for max. n entries with new:<n>. Add a trace with #trace:msg Dump the last <n> trace entries with dumpLast:<n> on:aStream Dump all captured entres with dumpOn:aStream. Class protocol:instance creation
Instance protocol:dumping
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. |buffer| buffer := self new:5. 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. |buffer| buffer := self new:10. buffer dumpOn:Transcript. buffer trace:1. buffer trace:2. buffer trace:3. buffer dumpOn:Transcript. buffer trace:4. buffer trace:5. buffer dumpOn:Transcript. buffer trace:6. buffer trace:7. buffer trace:8. buffer dumpOn:Transcript. buffer trace:9. buffer trace:10. buffer trace:11. buffer dumpOn:Transcript. buffer trace:12. buffer trace:13. buffer trace:14. buffer trace:15. buffer trace:16. buffer trace:17. buffer trace:18. buffer trace:19. buffer trace:20. buffer trace:21. buffer trace:22. buffer trace:23. buffer dumpOn:Transcript. |
|
ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 02:38:32 GMT |