osyoyu / pf2

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

Accept configuration through initializer kwargs #7

Closed osyoyu closed 9 months ago

osyoyu commented 9 months ago

Configuration is now accepted in the following manner:

profiler = Pf2::TimerThreadScheduler.new(threads: [Thread.current], track_new_threads: true)

...instead of Pf2::TimerThreadScheduler.new.start([Thread.current], true) .