processor: Resolve descriptor track names during tokenization as well

I'm about to switch "EarlyJava" events in chrome to use descriptor
tracks for thread time. These events will have timestamps that precede
any track descriptors' timestamps. So the parser will not see the track
descriptor before the events.

In order to import the thread time from the extra_counter_values into
the thread-time column used by the JSON export, we need to know the
thread time track's name at the time of parsing the event. Thus, this
patch adds the track name to the track reservation and sets it initially
when resolving a descriptor track, too. The parser will still later
update the track names from descriptors in the sorted-by-ts order.

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

Perfetto - Performance instrumentation and tracing

Perfetto is an open-source project for performance instrumentation and tracing of Linux/Android/Chrome platforms and user-space apps.

See www.perfetto.dev for docs.

Contributing

See /docs/contributing.md for instructions.

The source-of-truth repo is Android's Gerrit. The GitHub repo is a read-only mirror.

Bugs

  • For bugs affecting Android or the tracing internals use the internal bug tracker (go/perfetto-bugs).
  • For bugs affecting Chrome use http://crbug.com, Component:Speed>Tracing label:Perfetto.

Community

You can reach us on our Discord channel. If you prefer using IRC we have an experimental Discord <> IRC bridge synced with #perfetto-dev on Freenode.