Skip to content

Instantly share code, notes, and snippets.

@pglombardo
Created January 6, 2015 18:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pglombardo/a1d8cce11486f2c55768 to your computer and use it in GitHub Desktop.
Save pglombardo/a1d8cce11486f2c55768 to your computer and use it in GitHub Desktop.
Query and Dump SampleRate/Source values every second
#!/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