Commit bd89c43
committed
Add tracebox and advanced profiling support to Perfetto workflow
Enable heap profiling, CPU profiling, and system-wide tracing via
Perfetto's tracebox tool for comprehensive performance analysis.
Changes:
- Install tracebox binary in CI Docker image from get.perfetto.dev for
system-wide profiling capabilities
- Add workflow_dispatch inputs for perfetto-heap-profile and
perfetto-cpu-profile to control profiling modes (CPU profiling
enabled by default, heap profiling opt-in)
- Add SYS_PTRACE capability and disable seccomp in container options
to enable perf_event access required for CPU profiling
- Configure perf_event_paranoid=-1 at runtime when CPU profiling is
enabled to allow non-root access to performance counters
- Update Perfetto profiling step to conditionally wrap ctest execution
with tracebox when heap or CPU profiling is enabled, passing
appropriate flags (--heapprofd for heap, --cpu-freq/--cpu-idle/
--cpu-sched for CPU)
- Fall back to SDK-only tracing when no system profiling is requested
Users can now enable heap profiling and CPU counter profiling via
workflow_dispatch inputs to capture detailed memory allocation patterns
and CPU performance metrics alongside application traces.1 parent bec6861 commit bd89c43
2 files changed
Lines changed: 49 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
29 | 39 | | |
30 | 40 | | |
31 | 41 | | |
| |||
193 | 203 | | |
194 | 204 | | |
195 | 205 | | |
| 206 | + | |
196 | 207 | | |
197 | 208 | | |
198 | 209 | | |
| |||
270 | 281 | | |
271 | 282 | | |
272 | 283 | | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
273 | 287 | | |
274 | 288 | | |
275 | 289 | | |
276 | 290 | | |
277 | 291 | | |
278 | | - | |
279 | | - | |
280 | | - | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
281 | 321 | | |
282 | 322 | | |
283 | | - | |
284 | 323 | | |
285 | 324 | | |
286 | 325 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
289 | | - | |
| 289 | + | |
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
301 | 306 | | |
302 | 307 | | |
303 | 308 | | |
| |||
0 commit comments