Sha256: 4693fa2e7421cb6ac4141f8ea280c04914ea9d3aa1c1ef25adf8cf6cd2a83549
Contents?: true
Size: 554 Bytes
Versions: 2
Compression:
Stored size: 554 Bytes
Contents
require 'optparse' require 'tempfile' require 'tmpdir' require 'json' module PerfMonger module Command class RecordCommand < BaseCommand register_command 'record', 'Record system performance information' def initialize super end def run(argv) @argv, @option = PerfMonger::Command::RecordOption.parse(argv) exec_record_cmd() end private def exec_record_cmd() cmd = @option.make_command $stdout.puts("[recording to #{@option.logfile}]") Process.exec(*cmd) end end end # module Command end # module PerfMonger
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
perfmonger-0.7.1 | lib/perfmonger/command/record.rb |
perfmonger-0.7.0 | lib/perfmonger/command/record.rb |