Lines Matching defs:sar
2 Sets up a subprocess to run sar from the sysstat suite
5 sar -A -f
11 class sar(profiler.profiler):
13 The sar command writes to standard output the contents of selected
15 executes sar and redirects its output in a file located in the profiler
22 Set sar interval and verify what flags the installed sar supports.
24 @param interval: Interval used by sar to produce system data.
27 self.sar_path = os_dep.command('sar')
28 # If using older versions of sar, command below means: Measure default
39 # Sar process returned, so 0 doesn't mean generate continuously
42 # Sar process didn't return, so 0 means generate continuously
50 Starts sar subprocess.
54 logfile = open(os.path.join(test.profdir, "sar"), 'w')
55 # Save the sar data as binary, convert to text after the test.
56 raw = os.path.join(test.profdir, "sar.raw")
64 Stops profiler execution by sending a SIGTERM to sar process.
75 Report function. Convert the binary sar data to text.
79 raw = os.path.join(test.profdir, "sar.raw")
80 output = os.path.join(test.profdir, "sar")
81 utils.system('/usr/bin/sar -A -f %s > %s' % (raw, output))