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
Packaging Howto:
Because I forget every time I need to do this...
vim setup.py # change version
python3 setup.py sdist bdist_wheel
python3 -m twine upload dist/*
Metadata
Release files for eventtracer-py 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| eventtracer-py-0.0.2.tar.gz | 3.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| eventtracer_py-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.9 kB
Release files / eventtracer-py-0.0.2.tar.gz
| Download URL | eventtracer-py-0.0.2.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
58496758a4933ae157bcd854b43c2288e2971f9700c3f22eeebe7506f1a05ee9
|
|
BLAKE2b-256 checksum How to use checksums |
48f279be1e1c3c74d2cfb6f88062c205e07501be370d0e57fa43cdf2b9599811
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.5
|
Release files / eventtracer_py-0.0.2-py3-none-any.whl
| Download URL | eventtracer_py-0.0.2-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c055997155b2c5facdf95a71fe88d99e192c32ee95e7f423492066bdfe457779
|
|
BLAKE2b-256 checksum How to use checksums |
dd5d5cb668309f12bdb44d3a72cfc3a4d19c16845148dee4d10eff0f0a7c76a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.5
|