osyoyu / pf2

A sampling-based profiler for Ruby
https://rubygems.org/gems/pf2
MIT License
49 stars 3 forks source link

CPU-time based profiling #2

Closed osyoyu closed 1 year ago

osyoyu commented 1 year ago

Support per-process CPU-time based profiling by passing CLOCK_THREAD_CPUTIME_ID to timer_create(2). In this mode, samples should be collected each time when a pthread (= Ruby Thread) consumes a certain amount of CPU time.