brendangregg / perf-tools

Performance analysis tools based on Linux perf_events (aka perf) and ftrace
GNU General Public License v2.0
9.9k stars 1.65k forks source link

Will perf have a big impact on the application? #120

Open zdyj3170101136 opened 4 months ago

zdyj3170101136 commented 4 months ago

I understand that perf record -e cpu -F 100 will trigger the application to switch from user mode to kernel mode every time the application consumes 1ms of cpu.

And use fp to unwind traceback, this cost would be ns.

Please ask if what I said is correct?