Commit ff73bc6
authored
tp: add common_flags, query subcommand, and dispatcher (#5128)
## Summary
- Shared infrastructure: common_flags.h/.cc (GlobalOptions, BuildConfig,
SetupTraceProcessor, LoadTraceFile with symbolization/deobfuscation)
- Query subcommand with -f, -c, -i, -W, -p flags
- ClassicSubcommand: moves entire classic path into a Subcommand, uses
shared infra
- Thin dispatcher: finds subcommand or falls back to classic
- Integration tests for query subcommand and classic backcompat
Part 2/7 of the subcommand CLI implementation (RFC-0018).
## Stack
1. #5134 — SubcommandContext + GetLongOptions() interface
2. **#5128** ← this PR — common_flags + query + ClassicSubcommand +
dispatcher
3. #5129 — repl + serve subcommands
4. #5130 — summarize + export subcommands
5. #5131 — metrics subcommand
6. #5132 — help system + file collision + classic edge case tests
7. #5133 — BUILD.gn consolidation1 parent 637f1dc commit ff73bc6
File tree
13 files changed
+1055
-141
lines changed- src/trace_processor
- shell
- test
13 files changed
+1055
-141
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16811 | 16811 | | |
16812 | 16812 | | |
16813 | 16813 | | |
| 16814 | + | |
| 16815 | + | |
16814 | 16816 | | |
16815 | 16817 | | |
16816 | 16818 | | |
| |||
17154 | 17156 | | |
17155 | 17157 | | |
17156 | 17158 | | |
| 17159 | + | |
17157 | 17160 | | |
17158 | 17161 | | |
17159 | 17162 | | |
| |||
19253 | 19256 | | |
19254 | 19257 | | |
19255 | 19258 | | |
| 19259 | + | |
19256 | 19260 | | |
19257 | 19261 | | |
19258 | 19262 | | |
| |||
19598 | 19602 | | |
19599 | 19603 | | |
19600 | 19604 | | |
| 19605 | + | |
| 19606 | + | |
| 19607 | + | |
| 19608 | + | |
19601 | 19609 | | |
19602 | 19610 | | |
19603 | 19611 | | |
| |||
19642 | 19650 | | |
19643 | 19651 | | |
19644 | 19652 | | |
| 19653 | + | |
19645 | 19654 | | |
19646 | 19655 | | |
19647 | 19656 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
648 | 648 | | |
649 | 649 | | |
650 | 650 | | |
| 651 | + | |
651 | 652 | | |
652 | 653 | | |
653 | 654 | | |
| |||
4142 | 4143 | | |
4143 | 4144 | | |
4144 | 4145 | | |
| 4146 | + | |
| 4147 | + | |
| 4148 | + | |
| 4149 | + | |
| 4150 | + | |
| 4151 | + | |
| 4152 | + | |
| 4153 | + | |
| 4154 | + | |
| 4155 | + | |
| 4156 | + | |
| 4157 | + | |
| 4158 | + | |
4145 | 4159 | | |
4146 | 4160 | | |
4147 | 4161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
| 263 | + | |
263 | 264 | | |
264 | 265 | | |
265 | 266 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
19 | 23 | | |
20 | 24 | | |
21 | 25 | | |
22 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
23 | 40 | | |
24 | 41 | | |
25 | 42 | | |
| |||
112 | 129 | | |
113 | 130 | | |
114 | 131 | | |
| 132 | + | |
115 | 133 | | |
116 | 134 | | |
0 commit comments