Class: StressReporter::Actions::Xmanager

Inherits:
Object
  • Object
show all
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

Class Method Details

.reportObject

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