UTSASRG / Scaler

GNU General Public License v2.0
4 stars 0 forks source link

Compare with perf #30

Closed GammaPi closed 1 year ago

GammaPi commented 2 years ago
  1. Perf is not helpful for small programs
  2. It's a hassle to adjust sampling rate, you never know when it is appropriate
  3. Perf relies on DWARF or framepointer image

    Since about the 3.9 kernel, perf_events has supported a workaround for missing frame pointers in user-level stacks: libunwind, which uses dwarf. This can be enabled using "--call-graph dwarf" (or "-g dwarf").

https://www.brendangregg.com/perf.html Section 4.4. Scaler works anywhere.

GammaPi commented 2 years ago
  1. Perf requires frame pointers https://www.brendangregg.com/perf.html Section 4.4. Scaler works anywhere.
GammaPi commented 2 years ago

Recent version of perf have included a trace subcommand, to provide some similar functionality to strace, but with much lower overhead.

GammaPi commented 2 years ago

Results in paper version 1.0. But why can't perf do the job?

GammaPi commented 1 year ago

Already compared with perf thoroughly in recent versions.