Home
last modified time | relevance | path

Searched refs:system_facade (Results 1 – 8 of 8) sorted by relevance

/external/autotest/client/common_lib/cros/
Dsystem_metrics_collector.py120 def __init__(self, system_facade): argument
122 self.system_facade = system_facade
125 total_memory = self.system_facade.get_mem_total()
126 free_memory = self.system_facade.get_mem_free_plus_buffers_and_cached()
135 def __init__(self, system_facade): argument
138 self.system_facade = system_facade
141 self.last_usage = self.system_facade.get_cpu_usage()
147 current_usage = self.system_facade.get_cpu_usage()
150 usage_percent = 100 * self.system_facade.compute_active_cpu_time(
159 def __init__(self, system_facade): argument
[all …]
Dsystem_metrics_collector_unittest.py33 system_facade = FakeSystemFacade()
34 metric = system_metrics_collector.CpuUsageMetric(system_facade)
36 system_facade.active_cpu_time += 0.1
46 system_facade = FakeSystemFacade()
48 system_facade)
50 system_facade.storage_statistics['written_kb'] += 1337
55 system_facade = FakeSystemFacade()
57 system_facade)
59 system_facade.bg_worker_output = _FATRACE_OUTPUT_1
61 system_facade.bg_worker_output = _FATRACE_OUTPUT_2
/external/autotest/server/site_tests/enterprise_LongevityTrackerServer/
Denterprise_longevity_helper.py15 def get_cpu_usage(system_facade, measurement_duration_seconds): argument
26 cpu_usage_start = system_facade.get_cpu_usage()
28 cpu_usage_end = system_facade.get_cpu_usage()
29 return system_facade.compute_active_cpu_time(
33 def get_memory_usage(system_facade): argument
43 total_memory = system_facade.get_mem_total()
44 return ((total_memory - system_facade.get_mem_free())
48 def get_temperature_data(client, system_facade): argument
60 ec_temp = system_facade.get_ec_temperatures()
Denterprise_LongevityTrackerServer.py58 self.board_name = self.system_facade.get_current_board()
59 self.chromeos_version = self.system_facade.get_chromeos_release_version()
184 self.system_facade, MEASUREMENT_DURATION_SECONDS)
186 self.system_facade)
188 self.client, self.system_facade)
353 self.system_facade = factory.create_system_facade()
/external/autotest/server/cros/cfm/utils/
Dperf_metrics_collector.py12 def __init__(self, system_facade, cfm_facade, writer_function, argument
23 system_facade)
27 system_metrics_collector.SystemMetricsCollector(system_facade,
/external/autotest/server/cros/cfm/configurable_test/
Dconfigurable_cfm_test.py94 system_facade = self._facade_factory.create_system_facade()
95 return perf_metrics_collector.PerfMetricsCollector(system_facade,
/external/autotest/server/site_tests/enterprise_CFM_Perf/
Denterprise_CFM_Perf.py89 system_facade = self._facade_factory.create_system_facade()
92 system_facade,
/external/autotest/client/cros/chameleon/
Daudio_widget.py798 def __init__(self, audio_facade, system_facade): argument
809 self._system_facade = system_facade