otel-profiling-agent icon indicating copy to clipboard operation
otel-profiling-agent copied to clipboard

Make it easier to add new profilers will be a good feature

Open zmj64351508 opened this issue 8 months ago • 0 comments

OTel-ebpf-profiler supports on-cpu and off-cpu profilers now. It would be natural to add more profilers such as memory-allocation, cache-miss, etc. Making it easier to add new profilers will be a good feature. Maybe something like following can help:

  1. Provide a "Profiler" interface for each profiler.
  2. Provide a module to simplify attaching to tracepoint or kprobe.
  3. Attaching to different perf events(rather than cpu-clock) can also be an option.

zmj64351508 avatar Apr 28 '25 08:04 zmj64351508