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
16 files changed
tree: 3c64775194f25a9a110e30d7ad68a3af0a28fda1
  1. bazel/
  2. build_overrides/
  3. buildtools/
  4. debian/
  5. docs/
  6. examples/
  7. gn/
  8. include/
  9. infra/
  10. protos/
  11. src/
  12. test/
  13. tools/
  14. ui/
  15. .clang-format
  16. .clang-tidy
  17. .gitignore
  18. .gn
  19. .style.yapf
  20. Android.bp
  21. Android.bp.extras
  22. BUILD
  23. BUILD.extras
  24. BUILD.gn
  25. CHANGELOG
  26. codereview.settings
  27. heapprofd.rc
  28. LICENSE
  29. METADATA
  30. MODULE_LICENSE_APACHE2
  31. OWNERS
  32. perfetto.rc
  33. PRESUBMIT.py
  34. README.chromium
  35. README.md
  36. TEST_MAPPING
  37. traced_perf.rc
  38. WORKSPACE
README.md

Perfetto - System profiling, app tracing and trace analysis

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.