@@ -70,9 +70,8 @@ def test_for_loop_statistics():
7070 # Create profiler in the test function
7171 # Disable block sampling to ensure all blocks are executed
7272 cfg ._profiler_enable_block_sampling = False
73- loop_profiler = Profiler (
74- disable_buffer_load_check = True , disable_load_mask_percentage_check = True
75- )
73+ cfg ._profiler_disable_buffer_load_check = True
74+ loop_profiler = Profiler (disable_load_mask_percentage_check = True )
7675 traced_kernel = triton_viz .trace (loop_profiler )(for_loop_test_kernel )
7776
7877 # Run the kernel
@@ -179,7 +178,8 @@ def test_mask_percentage():
179178 # Create profiler in the test function
180179 # Disable block sampling to ensure all blocks are executed
181180 cfg ._profiler_enable_block_sampling = False
182- mask_profiler = Profiler (disable_buffer_load_check = True )
181+ cfg ._profiler_disable_buffer_load_check = True
182+ mask_profiler = Profiler ()
183183 traced_kernel = triton_viz .trace (mask_profiler )(mask_percentage_test_kernel )
184184
185185 # Run the kernel
@@ -305,11 +305,11 @@ def test_block_sampling(test_name, enable_sampling, k_value, expected_executions
305305 # Configure block sampling via config - must be done BEFORE creating Profiler
306306 # Set the private attribute directly to ensure it takes effect
307307 cfg ._profiler_enable_block_sampling = enable_sampling
308+ cfg ._profiler_disable_buffer_load_check = True
308309
309310 # Create profiler with k value
310311 profiler = Profiler (
311312 k = k_value ,
312- disable_buffer_load_check = True ,
313313 disable_load_mask_percentage_check = True ,
314314 )
315315
@@ -360,9 +360,10 @@ def test_load_store_skip_disabled():
360360 cfg ._profiler_enable_load_store_skipping = False
361361 # Also disable block sampling to ensure all blocks are executed
362362 cfg ._profiler_enable_block_sampling = False
363+ cfg ._profiler_disable_buffer_load_check = True
363364
364365 # Create profiler and traced kernel
365- profiler = Profiler (disable_buffer_load_check = True )
366+ profiler = Profiler ()
366367 traced_kernel = triton_viz .trace (profiler )(simple_kernel )
367368
368369 # Run kernel
@@ -388,9 +389,10 @@ def test_load_store_skip_enabled():
388389 cfg ._profiler_enable_load_store_skipping = True
389390 # Also disable block sampling to ensure all blocks are executed
390391 cfg ._profiler_enable_block_sampling = False
392+ cfg ._profiler_disable_buffer_load_check = True
391393
392394 # Create profiler and traced kernel
393- profiler = Profiler (disable_buffer_load_check = True )
395+ profiler = Profiler ()
394396 traced_kernel = triton_viz .trace (profiler )(simple_kernel )
395397
396398 # Run kernel
0 commit comments