Class: StressReporter::Actions::Xmanager
- Inherits:
-
Object
- Object
- StressReporter::Actions::Xmanager
- Defined in:
- lib/stress_reporter/actions/xmanager.rb
Overview
Actions to report on passenger usage. Current requests, urls, pids TODO: We should not assume that xm_last_url_for_pid are in /tmp TODO: Spawning passenger-status is slow
Constant Summary collapse
- CMD =
"passenger-status"
- PID_REGEX =
/PID:\s*(\d+)/
Class Method Summary collapse
-
.report ⇒ Object
Report returns a string array.
Class Method Details
.report ⇒ Object
Report returns a string array
13 14 15 16 17 18 19 |
# File 'lib/stress_reporter/actions/xmanager.rb', line 13 def self.report out = [] Xmanager.current_requests.each_pair do |pid, url| out << "PID:\t#{ pid }\tREQUEST:\t#{ url }" end out end |