trace_processor: switch to creating ranged RowMap when filtering

This CL changes to creating a ranged RowMap when filtering a Table
instead of a BitVector. This makes nested subqueries which occur during
joins on ID columns O(1).

Old:
----------------------------------------------------------------------
Benchmark                               Time           CPU Iterations
----------------------------------------------------------------------
BM_TableFilterIdColumn/1024              244 ns        244 ns    2871097
BM_TableFilterIdColumn/4096              255 ns        255 ns    2743052
BM_TableFilterIdColumn/32768             429 ns        429 ns    1642865
BM_TableFilterIdColumn/262144           3319 ns       3318 ns     209343
BM_TableFilterIdColumn/2097152         19921 ns      19918 ns      34571

New:
----------------------------------------------------------------------
Benchmark                               Time           CPU Iterations
----------------------------------------------------------------------
BM_TableFilterIdColumn/1024           156 ns        156 ns    4473738
BM_TableFilterIdColumn/4096           158 ns        158 ns    4459875
BM_TableFilterIdColumn/32768          159 ns        159 ns    4430902
BM_TableFilterIdColumn/262144         160 ns        160 ns    4384701
BM_TableFilterIdColumn/2097152        160 ns        160 ns    4374038

Analysis:
The filtering on id columns is finally O(1) and faster at every size.

Context: go/perfetto-tp-refactor
Bug: 135177627
Change-Id: I79d7f04a2d7353ff72293b502394feea8d93f988
1 file changed
tree: 0c9d9e780303441610fd6a6a034f75e1f081b536
  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. MODULE_LICENSE_APACHE2
  26. NOTICE
  27. OWNERS
  28. perfetto.rc
  29. PRESUBMIT.py
  30. README.chromium
  31. README.md
  32. TEST_MAPPING
  33. 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.

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.