Home
last modified time | relevance | path

Searched refs:metrics_utils (Results 1 – 15 of 15) sorted by relevance

/tools/asuite/aidegen/lib/
Daidegen_metrics_unittest.py28 from atest.metrics import metrics_utils
31 metrics_utils = None variable
37 @mock.patch.object(metrics_utils, 'print_data_collection_notice')
45 with mock.patch.object(metrics_utils, 'get_start_time') as mk_get:
55 if metrics_utils:
56 with mock.patch.object(metrics_utils, 'send_exit_event') as mk_send:
Daidegen_metrics.py53 from atest.metrics import metrics_utils
56 metrics_utils = None variable
70 metrics_utils.print_data_collection_notice()
72 metrics_utils.get_start_time()
93 if not metrics_utils:
95 metrics_utils.send_exit_event(
/tools/acloud/metrics/
Dmetrics.py52 from asuite.metrics import metrics_utils
53 metrics_utils.print_data_collection_notice()
54 metrics_utils.send_start_event(tool_name=constants.TOOL_NAME,
78 from asuite.metrics import metrics_utils
79 metrics_utils.send_exit_event(exit_code, stacktrace=stacktrace,
Dmetrics_test.py24 from asuite.metrics import metrics_utils
33 self.Patch(metrics_utils, "print_data_collection_notice")
34 self.Patch(metrics_utils, "send_start_event")
49 self.Patch(metrics_utils, "send_exit_event")
51 metrics_utils.send_exit_event.assert_called_once_with(
/tools/asuite/atest/metrics/
Dmetrics_utils_unittest.py26 from atest.metrics import metrics_utils
43 metrics_utils.print_data_collection_notice(colorful=False)
65 metrics_utils.print_data_collection_notice()
/tools/asuite/atest/asuite_lib_test/
Dasuite_cc_client_test.py33 from atest.metrics import metrics_utils
38 metrics_utils.get_start_time()
/tools/asuite/atest/
Dbug_detector.py24 from atest.metrics import metrics_utils
135 metrics_utils.handle_exc_and_send_exit_event(
Datest_main.py60 from atest.metrics import metrics_utils
425 metrics_utils.send_exit_event(ExitCode.INVALID_EXEC_MODE, logs=err_msg)
475 metrics_utils.send_exit_event(ExitCode.DEVICE_NOT_FOUND, logs=err_msg)
961 metrics_utils.print_data_collection_notice()
1009 metrics_utils.get_start_time()
1118 duration=metrics_utils.convert_duration(build_duration),
1175 duration=metrics_utils.convert_duration(time.time() - test_start)
1181 duration=metrics_utils.convert_duration(preparation_time),
Dtest_runner_invocation.py27 from atest.metrics import metrics_utils
99 run_time = metrics_utils.convert_duration(time.time() - test_start)
Datest_execution_info.py35 from atest.metrics import metrics_utils
337 metrics_utils.send_exit_event(main_exit_code)
340 metrics_utils.handle_exc_and_send_exit_event(main_exit_code)
Datest_main_unittest.py36 from atest.metrics import metrics_utils
103 @mock.patch.object(metrics_utils, 'send_exit_event')
Dcli_translator.py40 from atest.metrics import metrics_utils
217 duration=metrics_utils.convert_duration(time.time() - test_find_starts),
661 metrics_utils.send_exit_event(ExitCode.TEST_NOT_FOUND)
Datest_utils.py53 from atest.metrics import metrics_utils
837 metrics_utils.handle_exc_and_send_exit_event(constants.ACCESS_CACHE_FAILURE)
871 metrics_utils.handle_exc_and_send_exit_event(
894 metrics_utils.handle_exc_and_send_exit_event(
987 duration=metrics_utils.convert_duration(0),
/tools/asuite/atest/tools/
Dindexing.py38 from atest.metrics import metrics, metrics_utils
138 metrics_utils.handle_exc_and_send_exit_event(constants.PLOCATEDB_LOCKED)
/tools/asuite/atest/test_finders/
Dtest_finder_utils.py41 from atest.metrics import metrics, metrics_utils
448 metrics_utils.handle_exc_and_send_exit_event(