Created
January 6, 2015 18:14
-
-
Save pglombardo/a1d8cce11486f2c55768 to your computer and use it in GitHub Desktop.
Query and Dump SampleRate/Source values every second
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
Bundler.require(:default) | |
Oboe::Config[:tracing_mode] = :always | |
while true do | |
Oboe.sample?(:layer => 'rack') | |
puts "PID - SampleRate/Source: #{Process.pid} - #{Oboe.sample_rate}/#{Oboe.sample_source}" | |
sleep 1 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment