A lightweight Python library for easy profiling in Chrome trace format (about: tracing). Version 0.2.0 supports sync/async, generators, automatic trace saving, and stats threads. Maintenance-oriented, with occasional updates.
pip install kekeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Profiling with keke: wrap code with @ktrace or 'with ktrace()' to generate Chrome trace files. Configure auto-save with TraceConfig.
Update any custom trace format parsing to expect the new schema (see GitHub changelog).
Set `TraceConfig(enabled=True, output_dir='/path/to/traces')` at startup, or set environment variable `KEKE_OUTPUT_DIR`.
Ensure args are basic types (str, int, list, dict) that can be json.dumps'd.
Convert args to JSON-serializable types, e.g., `args={'id': myobj.id}`.Use `from keke import ktrace`. If using pre-0.2.0, ktrace was `keketrace`? Actually always use `from keke import ktrace`.
No dependency data recorded yet.