Lines Matching defs:stats
62 def verify_success_fail_count(self, stats, key, num_successes, num_fails):
63 self.verify_key_in_dict(key, stats, 'stats["%s"]' % (key))
64 success_fail_dict = stats[key]
89 stats = self.get_target_stats(self.get_stats())
90 self.verify_success_fail_count(stats, "expressionEvaluation", 1, 0)
111 stats = self.get_target_stats(self.get_stats())
112 self.verify_success_fail_count(stats, "expressionEvaluation", 2, 2)
115 # 'frame var' with enabled statistics will change stats.
117 stats = self.get_target_stats(self.get_stats())
118 self.verify_success_fail_count(stats, "frameVariable", 1, 0)
121 self.assertIn("stopCount", stats, 'ensure "stopCount" is in target JSON')
123 stats["stopCount"], 0, 'make sure "stopCount" is greater than zero'
178 stats = debug_stats["targets"][0]
186 self.verify_keys(stats, '"stats"', keys_exist, keys_missing)
187 self.assertGreater(stats["targetCreateTime"], 0.0)
246 stats = debug_stats["targets"][0]
256 self.verify_keys(stats, '"stats"', keys_exist, None)
257 self.assertGreater(stats["firstStopTime"], 0.0)
258 self.assertGreater(stats["launchOrAttachTime"], 0.0)
259 self.assertGreater(stats["targetCreateTime"], 0.0)
299 def find_module_in_metrics(self, path, stats):
300 modules = stats["modules"]
306 def find_module_by_id_in_metrics(self, id, stats):
307 modules = stats["modules"]
336 stats = debug_stats["targets"][0]
340 self.verify_keys(stats, '"stats"', keys_exist, None)
454 self.verify_keys(target_stats, '"stats"', keys_exist, None)
476 pair in the "a.out" binaries module stats. Also verify the the main
521 module identifier can be used to find the .o file's module stats.
541 # in the stats.
598 # Get stats and verify we had errors.
599 stats = self.get_stats()
600 exe_stats = self.find_module_in_metrics(exe, stats)
609 self.assertEqual(stats["totalModuleCountWithVariableErrors"], 0)
618 # Get stats and verify we had errors.
619 stats = self.get_stats()
620 exe_stats = self.find_module_in_metrics(exe, stats)
629 self.assertGreater(stats["totalModuleCountWithVariableErrors"], 0)
664 def verify_stats(self, stats, expectation, options):
669 exists = field_name in stats
682 stats[top_level_field_name] if top_level_field_name in stats else {}
844 stats = self.get_stats(options)
847 self.verify_stats(stats, expectation, options)
881 stats = json.loads(stream.GetData())
884 self.verify_stats(stats, expectation, options)
938 stats = self.get_target_stats(self.get_stats())
939 self.assertIn("summaryProviderStatistics", stats)
940 summary_providers = stats["summaryProviderStatistics"]
956 stats = self.get_target_stats(self.get_stats())
957 self.assertIn("summaryProviderStatistics", stats)
958 summary_providers = stats["summaryProviderStatistics"]
980 stats = self.get_target_stats(self.get_stats())
981 self.assertIn("summaryProviderStatistics", stats)
982 summary_providers = stats["summaryProviderStatistics"]
994 Test statistics dump only reports the stats from current target and
995 "statistics dump --all-targets" includes all target stats.