eventtracer-py-0.0.2
توضیحات
A library for tracing code into the chrome Event Trace format
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | eventtracer-py-0.0.2 |
| نام | eventtracer-py |
| نسخه کتابخانه | 0.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Shish |
| ایمیل نویسنده | webmaster@shishnet.org |
| آدرس صفحه اصلی | https://github.com/shish/eventtracer-py |
| آدرس اینترنتی | https://pypi.org/project/eventtracer-py/ |
| مجوز | - |
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:
------------
[Google Doc](https://docs.google.com/document/d/1CvAClvFfyA5R-PhYUmn5OOQtYMH4h6I0nSsKchNAySU/edit)
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/*
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl eventtracer-py-0.0.2:
pip install eventtracer-py-0.0.2.whl
نصب پکیج tar.gz eventtracer-py-0.0.2:
pip install eventtracer-py-0.0.2.tar.gz