otel-profiling-agent
otel-profiling-agent copied to clipboard
Make it easier to add new profilers will be a good feature
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:
- Provide a "Profiler" interface for each profiler.
- Provide a module to simplify attaching to tracepoint or kprobe.
- Attaching to different perf events(rather than cpu-clock) can also be an option.