sar Package¶
sar Module¶
Sets up a subprocess to run sar from the sysstat suite
Default options: sar -A -f
-
class
autotest.client.profilers.sar.sar.sar(job)[source]¶ Bases:
autotest.client.profiler.profilerThe sar command writes to standard output the contents of selected cumulative activity counters in the operating system. This profiler executes sar and redirects its output in a file located in the profiler results dir.
-
initialize(interval=1, **dargs)[source]¶ Set sar interval and verify what flags the installed sar supports.
Parameters: interval – Interval used by sar to produce system data.
-
report(test)[source]¶ Report function. Convert the binary sar data to text.
Parameters: test – Autotest test on which this profiler will operate on.
-
start(test)[source]¶ Starts sar subprocess.
Parameters: test – Autotest test on which this profiler will operate on.
-
stop(test)[source]¶ Stops profiler execution by sending a SIGTERM to sar process.
Parameters: test – Autotest test on which this profiler will operate on.
-
version= 1¶
-