How kunalb/panopticon works
Main Components
a) Core Components:
• Tracer Engine (panopticon/tracer.py)
• Probe System (panopticon/probe.py)
• Trace Generator (panopticon/trace.py)
• Post-processing System (panopticon/post.py)
b) Interface Components:
• CLI Interface (__main__.py)
• API Interface (exposed through __init__.py)
c) External Integration:
• Chrome Tracing (Catapult) Output
• Python Debugger Integration
Top Layer: User Interfaces
Middle Layer: Core Processing
Bottom Layer: Output & Integration
Component Relationships
a) Input Flow:
• User Code → CLI Interface / API Interface
• Interfaces → Probe System
• Probe System → Tracer Engine
b) Processing Flow:
• Tracer Engine → Trace Generator
• Trace Generator → Post-processing System
c) Output Flow:
• Post-processing System → Catapult-compatible Trace Files
Detailed Component Descriptions
Annotations for key components:
a) Probe System:
• Function/class instrumentation
• Multiple trace support
• Argument capture capability
b) Tracer Engine:
• Python debugger integration
• Frame execution tracking
• State management
c) Trace Generator:
• Catapult format compliance
• Flow event generation
• Timing capture
Additional Notes
• The non-intrusive nature of the tracing system
• The flexibility of probe placement
• The ability to handle both synchronous and asynchronous code
• The integration with Chrome's tracing infrastructure
Remember to include version information (currently Alpha) and note that the architecture supports future extensibility, as indicated by the ongoing development status in the README.