@@ -1996,7 +1996,7 @@ def test_cli_module_argument_parsing(self):
19961996 show_summary = True ,
19971997 output_format = "pstats" ,
19981998 realtime_stats = False ,
1999- skip_idle = False
1999+ mode = 0
20002000 )
20012001
20022002 @unittest .skipIf (is_emscripten , "socket.SO_REUSEADDR does not exist" )
@@ -2024,7 +2024,7 @@ def test_cli_module_with_arguments(self):
20242024 show_summary = True ,
20252025 output_format = "pstats" ,
20262026 realtime_stats = False ,
2027- skip_idle = False
2027+ mode = 0
20282028 )
20292029
20302030 @unittest .skipIf (is_emscripten , "socket.SO_REUSEADDR does not exist" )
@@ -2052,7 +2052,7 @@ def test_cli_script_argument_parsing(self):
20522052 show_summary = True ,
20532053 output_format = "pstats" ,
20542054 realtime_stats = False ,
2055- skip_idle = False
2055+ mode = 0
20562056 )
20572057
20582058 @unittest .skipIf (is_emscripten , "socket.SO_REUSEADDR does not exist" )
@@ -2152,7 +2152,7 @@ def test_cli_module_with_profiler_options(self):
21522152 show_summary = True ,
21532153 output_format = "pstats" ,
21542154 realtime_stats = False ,
2155- skip_idle = False
2155+ mode = 0
21562156 )
21572157
21582158 @unittest .skipIf (is_emscripten , "socket.SO_REUSEADDR does not exist" )
@@ -2186,7 +2186,7 @@ def test_cli_script_with_profiler_options(self):
21862186 show_summary = True ,
21872187 output_format = "collapsed" ,
21882188 realtime_stats = False ,
2189- skip_idle = False
2189+ mode = 0
21902190 )
21912191
21922192 def test_cli_empty_module_name (self ):
@@ -2398,7 +2398,7 @@ def test_argument_parsing_basic(self):
23982398 show_summary = True ,
23992399 output_format = "pstats" ,
24002400 realtime_stats = False ,
2401- skip_idle = False
2401+ mode = 0
24022402 )
24032403
24042404 def test_sort_options (self ):
@@ -2526,7 +2526,7 @@ def main():
25262526 proc .pid ,
25272527 duration_sec = 0.5 ,
25282528 sample_interval_usec = 5000 ,
2529- skip_idle = True , # CPU mode
2529+ mode = 1 , # CPU mode
25302530 show_summary = False ,
25312531 all_threads = True ,
25322532 )
@@ -2535,7 +2535,7 @@ def main():
25352535
25362536 cpu_mode_output = captured_output .getvalue ()
25372537
2538- # Test wall-clock mode (skip_idle=False ) - should capture both functions
2538+ # Test wall-clock mode (mode=0 ) - should capture both functions
25392539 with (
25402540 io .StringIO () as captured_output ,
25412541 mock .patch ("sys.stdout" , captured_output ),
@@ -2545,7 +2545,7 @@ def main():
25452545 proc .pid ,
25462546 duration_sec = 0.5 ,
25472547 sample_interval_usec = 5000 ,
2548- skip_idle = False , # Wall-clock mode
2548+ mode = 0 , # Wall-clock mode
25492549 show_summary = False ,
25502550 all_threads = True ,
25512551 )
0 commit comments