mirror of
https://github.com/eunomia-bpf/bpf-developer-tutorial.git
synced 2026-05-08 14:52:40 +08:00
Add wall clock analysis (#184)
* Add combined on-CPU and off-CPU profiler script - Implemented a new profiling tool that captures both on-CPU and off-CPU activity for a specified process. - The script runs 'oncputime' and 'offcputime' tools simultaneously and combines their results into a unified flamegraph. - Added functionality to discover threads and profile them individually if the application is multi-threaded. - Included error handling for tool execution and output processing. - Created methods for generating flamegraph data and SVG visualizations. - Added command-line argument parsing for user-defined profiling parameters. - Implemented detailed analysis reports for both individual threads and overall profiling results. * feat: integrate blazesym v0.2.0 for improved symbol resolution and add test program for memory leak detection * docs: update README to enhance wall clock profiling tutorial with detailed explanations and examples * feat: add wallclock-profiler tests to CI workflow for tool validation * fix: rename combined_profiler.py to wallclock_profiler.py in test scripts and usage examples
This commit is contained in:
25
src/32-wallclock-profiler/.gitignore
vendored
Normal file
25
src/32-wallclock-profiler/.gitignore
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
/.output
|
||||
/bootstrap
|
||||
/profile
|
||||
/offcputime
|
||||
/oncputime
|
||||
res.txt
|
||||
*.o
|
||||
oncpu.txt
|
||||
offcpu.txt
|
||||
FlameGraph
|
||||
pmumon
|
||||
test_combined
|
||||
pmumon_advanced
|
||||
/demo_results.svg
|
||||
demo_results.folded
|
||||
test_program
|
||||
combined_profile_pid*.svg
|
||||
combined_profile_pid*.folded
|
||||
combined_profile_pid*.txt
|
||||
combined_flamegraph.pl
|
||||
multithread_combined_profile_pid*
|
||||
demo_results_single_thread_analysis.txt
|
||||
test_multithread
|
||||
perf.data*
|
||||
double_bandwidth
|
||||
Reference in New Issue
Block a user