Skip to main content

Module debug

Module debug 

Source
Expand description

CuDebug: lightweight time-travel debugger helpers on top of Copper logs.

Design goals:

  • Do not load entire copperlists into memory (logs can be huge).
  • Build a compact section index in one streaming pass (copperlists + keyframes).
  • Keep keyframes in memory (much smaller) and lazily page copperlist sections with a tiny LRU cache for snappy stepping.
  • Reuse the public CuSimApplication API and user-provided sim callbacks.

Structsยง

CuDebugSession
JumpOutcome
Result of a jump/step, useful for benchmarking cache effectiveness.
SectionCacheStats
Section-cache statistics for a debug session.