コード例 #1
0
ファイル: __main__.py プロジェクト: nicko96/Chrome-Infra
 def single_iteration():
   try:
     system_metrics.get_cpu_info()
     system_metrics.get_disk_info()
     system_metrics.get_mem_info()
     system_metrics.get_net_info()
     system_metrics.get_proc_info()
     puppet_metrics.get_puppet_summary()
   finally:
     ts_mon.flush()
   return True
コード例 #2
0
  def test_proc_info(self):
    system_metrics.get_proc_info()

    self.assertGreater(system_metrics.proc_count.get(), 10)