commit | 82a2c04a8ebe1ad754764f5a0a810eee0cdd7b49 | [log] [tgz] |
---|---|---|
author | Lalit Maganti <lalitm@google.com> | Mon Jul 06 13:50:33 2020 +0100 |
committer | Lalit Maganti <lalitm@google.com> | Mon Jul 06 13:50:33 2020 +0100 |
tree | 3c64775194f25a9a110e30d7ad68a3af0a28fda1 | |
parent | 350be7ea7229bf9916a236738a1c5ec232d918fc [diff] |
tp: several changes for Python API 1. Move everything into a new trace_processor folder inside the Python folder and add an empty setup.py. Doing this will allow us to correctly implement setup.py based standalone installation using pip down the line. 2. Add an __init__.py inside the new trace_processor folder to make it a module we can use. 3. Rename trace_processor_http.py -> http.py now that we have the wrapping trace_processor folder. 4. Rename api_main.py -> example.py to better reflect its intended usecase. 5. Check in the trace_processor.proto descriptor (including modifying the gen_binary_descriptor script to generate this). 6. Add a proto Python module which reads the descriptor and generates proto factory functions. These changes were verified to work with both bazel run and execing the example.py script directly. Change-Id: I7603edee8741632c6f8d1c7b8ea9d9d17a4c78cd
Perfetto is a production-grade open-source stack for performance instrumentation and trace analysis. It offers services and libraries and for recording system-level and app-level traces, native + java heap profiling, a library for analyzing traces using SQL and a web-based UI to visualize and explore multi-GB traces.
See https://perfetto.dev/docs or the /docs/ directory for documentation.