A library for tracing code into the chrome Event Trace format
Project description
Generating Data:
Create tracer
from eventtracer import EventTracer
et = EventTracer("myeventlog.json")
Procedural API
et.begin("Eating Cake")
...
et.end()
Decorator API
@et.decorator
def foo():
...
foo()
Context Manager API
with et.context("doing stuff"):
...
Profiler API
et.set_profile(True)
If filename isn't specified, then data will be buffered
in-memory (et.buffer
) and can be written to disk in
one go with et.flush(filename)
.
Viewing Data:
Visit chrome://tracing
Load JSON file
Format Spec:
Uses the JSON Array Format because that's the one which can be appended to from multiple threads
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
eventtracer-py-0.0.1.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for eventtracer_py-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4cacef8831742dcd2354f2af09c9f294d5a10f0574690d2628efdf67d48b84c8 |
|
MD5 | c29311e3f3a215637c8857f2a8d53145 |
|
BLAKE2b-256 | 1b929d487f31dab3273e9d8b1600a903ce6d0ebcb9025e19d16a0679a920d6a1 |