Module Expr Str Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Expr Call AttributeLoad NameLoad attr Str NameLoad Str Expr Call AttributeLoad NameLoad attr Str NameLoad Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Return Expr Call AttributeLoad NameLoad attr Str Assign NameStore BoolOpOr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad decorator_list
N/A N/A Records system performance counters during benchmark runs using collectd.

http://collectd.org
 N/A logging N/A os N/A posixpath perfkitbenchmarker events perfkitbenchmarker flags perfkitbenchmarker vm_util perfkitbenchmarker.linux_packages collectd N/A N/A N/A flags DEFINE_boolean collectd False Install and run collectd on the guest. N/A N/A N/A flags DEFINE_string collectd_output None Path to store collectd results. _CollectdCollector N/A object N/A N/A Manages running collectd during a test, and fetching the CSV results. __init__ N/A N/A self target_dir N/A N/A N/A N/A self target_dir target_dir N/A _FetchResults N/A N/A self vm N/A N/A N/A Stops collectd on the VM, fetches CSV results. N/A N/A N/A logging info Fetching collectd results N/A local_dir N/A N/A N/A os path join N/A self target_dir N/A N/A vm name -collectd N/A N/A N/A vm PullFile local_dir N/A N/A posixpath join N/A collectd CSV_DIR * N/A Before N/A N/A self unused_sender benchmark_spec N/A N/A N/A Install collectd.

    Args:
      benchmark_spec: benchmark_spec.BenchmarkSpec. The benchmark currently
          running.
     N/A N/A N/A logging info Installing collectd N/A vms N/A benchmark_spec vms N/A N/A N/A vm_util RunThreaded N/A N/A N/A vm N/A N/A N/A vm Install collectd vms N/A After N/A N/A self unused_sender benchmark_spec N/A N/A N/A Stop / delete collectd, fetch results from VMs.

    Args:
      benchmark_spec: benchmark_spec.BenchmarkSpec. The benchmark that stopped
          running.
     N/A N/A N/A logging info Stopping collectd N/A vms N/A benchmark_spec vms N/A N/A N/A vm_util RunThreaded N/A self _FetchResults vms N/A N/A Register N/A N/A parsed_flags N/A N/A N/A Register the collector if FLAGS.collectd is set. N/A N/A N/A parsed_flags collectd N/A N/A N/A N/A N/A logging info Registering collectd collector N/A output_directory N/A N/A parsed_flags collectd_output N/A N/A vm_util GetTempDir N/A N/A N/A N/A N/A os path isdir output_directory N/A N/A N/A IOError N/A N/A collectd output directory does not exist: {0} format output_directory N/A collector N/A _CollectdCollector output_directory N/A N/A N/A N/A events before_phase connect N/A collector Before N/A events RUN_PHASE weak False N/A N/A N/A N/A events after_phase connect N/A collector After N/A events RUN_PHASE weak False N/A