@@ -404,8 +404,17 @@ function replace_profile_plot_blocks(
404404 plt = plot_profile_from_registry (profile_name, bench_id, SRC_DIR; combos= combos)
405405
406406 # Generate unique basename for the figure
407- args_str = bench_id * (isnothing (combos) ? " " : " _" * join ([" $(m) _$(s) " for (m, s) in combos], " _" ))
408- basename = generate_figure_basename (template_filename, " profile_plot_$(profile_name) " , args_str)
407+ args_str =
408+ bench_id * (
409+ if isnothing (combos)
410+ " "
411+ else
412+ " _" * join ([" $(m) _$(s) " for (m, s) in combos], " _" )
413+ end
414+ )
415+ basename = generate_figure_basename (
416+ template_filename, " profile_plot_$(profile_name) " , args_str
417+ )
409418
410419 # Create output directory if it doesn't exist
411420 mkpath (figures_output_dir)
@@ -442,7 +451,9 @@ function replace_profile_plot_blocks(
442451
443452 catch e
444453 if DOC_DEBUG[]
445- @error " ✗ Failed to generate profile plot" exception = (e, catch_backtrace ())
454+ @error " ✗ Failed to generate profile plot" exception = (
455+ e, catch_backtrace ()
456+ )
446457 else
447458 @error " ✗ Failed to generate profile plot: $(e) "
448459 end
@@ -528,13 +539,17 @@ function replace_profile_analysis_blocks(content::String)
528539 end
529540
530541 try
531- text_md = analyze_profile_from_registry (profile_name, bench_id, SRC_DIR; combos= combos)
542+ text_md = analyze_profile_from_registry (
543+ profile_name, bench_id, SRC_DIR; combos= combos
544+ )
532545 DOC_DEBUG[] &&
533546 @info " ✓ Replaced PROFILE_ANALYSIS block #$block_count : $profile_name for $bench_id "
534547 return text_md
535548 catch e
536549 if DOC_DEBUG[]
537- @error " ✗ Failed to generate profile analysis" exception = (e, catch_backtrace ())
550+ @error " ✗ Failed to generate profile analysis" exception = (
551+ e, catch_backtrace ()
552+ )
538553 else
539554 @error " ✗ Failed to generate profile analysis: $(e) "
540555 end
0 commit comments