aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/API/functionalities/stats_api/TestStatisticsAPI.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/API/functionalities/stats_api/TestStatisticsAPI.py')
-rw-r--r--lldb/test/API/functionalities/stats_api/TestStatisticsAPI.py23
1 files changed, 1 insertions, 22 deletions
diff --git a/lldb/test/API/functionalities/stats_api/TestStatisticsAPI.py b/lldb/test/API/functionalities/stats_api/TestStatisticsAPI.py
index 457a202..fe55922 100644
--- a/lldb/test/API/functionalities/stats_api/TestStatisticsAPI.py
+++ b/lldb/test/API/functionalities/stats_api/TestStatisticsAPI.py
@@ -16,10 +16,7 @@ class TestStatsAPI(TestBase):
"""
self.build()
exe = self.getBuildArtifact("a.out")
- # Launch a process and break
- (target, process, thread, bkpt) = lldbutil.run_to_source_breakpoint(
- self, "break here", lldb.SBFileSpec("main.c")
- )
+ target = self.dbg.CreateTarget(exe)
# Test enabling/disabling stats
self.assertFalse(target.GetCollectingStats())
@@ -77,24 +74,6 @@ class TestStatsAPI(TestBase):
'Make sure the "failures" key in in "frameVariable" dictionary"',
)
- # Test statistics summary.
- stats_options = lldb.SBStatisticsOptions()
- stats_options.SetSummaryOnly(True)
- stats_summary = target.GetStatistics(stats_options)
- stream_summary = lldb.SBStream()
- stats_summary.GetAsJSON(stream_summary)
- debug_stats_summary = json.loads(stream_summary.GetData())
- self.assertNotIn("modules", debug_stats_summary)
- self.assertNotIn("memory", debug_stats_summary)
- self.assertNotIn("commands", debug_stats_summary)
-
- # Summary values should be the same as in full statistics.
- # Except the parse time on Mac OS X is not deterministic.
- for key, value in debug_stats_summary.items():
- self.assertIn(key, debug_stats)
- if key != "targets" and not key.endswith("Time"):
- self.assertEqual(debug_stats[key], value)
-
def test_command_stats_api(self):
"""
Test GetCommandInterpreter::GetStatistics() API.