@@ -108,7 +108,7 @@ struct TestIOContext
108108 stdout :: IO
109109 stderr :: IO
110110 color:: Bool
111- debug_timing :: Bool
111+ debug_stats :: Bool
112112 lock:: ReentrantLock
113113 name_align:: Int
114114 elapsed_align:: Int
@@ -119,7 +119,7 @@ struct TestIOContext
119119 rss_align:: Int
120120end
121121
122- function test_IOContext (stdout :: IO , stderr :: IO , lock:: ReentrantLock , name_align:: Int , debug_timing :: Bool )
122+ function test_IOContext (stdout :: IO , stderr :: IO , lock:: ReentrantLock , name_align:: Int , debug_stats :: Bool )
123123 elapsed_align = textwidth (" time (s)" )
124124 compile_align = textwidth (" Compile" )
125125 gc_align = textwidth (" GC (s)" )
@@ -130,7 +130,7 @@ function test_IOContext(stdout::IO, stderr::IO, lock::ReentrantLock, name_align:
130130 color = get (stdout , :color , false )
131131
132132 return TestIOContext (
133- stdout , stderr , color, debug_timing , lock, name_align, elapsed_align, compile_align, gc_align, percent_align,
133+ stdout , stderr , color, debug_stats , lock, name_align, elapsed_align, compile_align, gc_align, percent_align,
134134 alloc_align, rss_align
135135 )
136136end
@@ -141,16 +141,16 @@ function print_header(ctx::TestIOContext, testgroupheader, workerheader)
141141 # header top
142142 printstyled (ctx. stdout , " " ^ (ctx. name_align + textwidth (testgroupheader) - 3 ), " │ " )
143143 printstyled (ctx. stdout , " Test |" , color = :white )
144- ctx. debug_timing && printstyled (ctx. stdout , " Init │" , color = :white )
145- VERSION >= v " 1.11" && ctx. debug_timing && printstyled (ctx. stdout , " Compile │" , color = :white )
144+ ctx. debug_stats && printstyled (ctx. stdout , " Init │" , color = :white )
145+ VERSION >= v " 1.11" && ctx. debug_stats && printstyled (ctx. stdout , " Compile │" , color = :white )
146146 printstyled (ctx. stdout , " ──────────────── CPU ──────────────── │\n " , color = :white )
147147
148148 # header bottom
149149 printstyled (ctx. stdout , testgroupheader, color = :white )
150150 printstyled (ctx. stdout , lpad (workerheader, ctx. name_align - textwidth (testgroupheader) + 1 ), " │ " , color = :white )
151151 printstyled (ctx. stdout , " time (s) │" , color = :white )
152- ctx. debug_timing && printstyled (ctx. stdout , " time (s) │" , color = :white )
153- VERSION >= v " 1.11" && ctx. debug_timing && printstyled (ctx. stdout , " (%) │" , color = :white )
152+ ctx. debug_stats && printstyled (ctx. stdout , " time (s) │" , color = :white )
153+ VERSION >= v " 1.11" && ctx. debug_stats && printstyled (ctx. stdout , " (%) │" , color = :white )
154154 printstyled (ctx. stdout , " GC (s) │ GC % │ Alloc (MB) │ RSS (MB) │\n " , color = :white )
155155 flush (ctx. stdout )
156156 finally
@@ -181,7 +181,7 @@ function print_test_finished(record::TestRecord, wrkr, test, ctx::TestIOContext)
181181 time_str = @sprintf (" %7.2f" , time)
182182 printstyled (ctx. stdout , lpad (time_str, ctx. elapsed_align, " " ), " │ " , color = :white )
183183
184- if ctx. debug_timing
184+ if ctx. debug_stats
185185 # pre-testset time
186186 init_time_str = @sprintf (" %7.2f" , record. total_time - time)
187187 printstyled (ctx. stdout , lpad (init_time_str, ctx. elapsed_align, " " ), " │ " , color = :white )
@@ -574,7 +574,7 @@ Fields are
574574
575575* `jobs::Union{Some{Int}, Nothing}`: the number of jobs
576576* `verbose::Union{Some{Nothing}, Nothing}`: whether verbose printing was enabled
577- * `debug_timing ::Union{Some{Nothing}, Nothing}`: whether debug timing printing was enabled
577+ * `debug_stats ::Union{Some{Nothing}, Nothing}`: whether debug stats printing was enabled
578578* `quickfail::Union{Some{Nothing}, Nothing}`: whether quick fail was enabled
579579* `list::Union{Some{Nothing}, Nothing}`: whether tests should be listed
580580* `custom::Dict{String,Any}`: a dictionary of custom arguments
@@ -583,7 +583,7 @@ Fields are
583583struct ParsedArgs
584584 jobs:: Union{Some{Int}, Nothing}
585585 verbose:: Union{Some{Nothing}, Nothing}
586- debug_timing :: Union{Some{Nothing}, Nothing}
586+ debug_stats :: Union{Some{Nothing}, Nothing}
587587 quickfail:: Union{Some{Nothing}, Nothing}
588588 list:: Union{Some{Nothing}, Nothing}
589589
@@ -642,7 +642,7 @@ function parse_args(args; custom::Array{String} = String[])
642642 --verbose Print more information during testing.
643643 --quickfail Fail the entire run as soon as a single test errored.
644644 --jobs=N Launch `N` processes to perform tests.
645- --debug-timing Print testset initialization timings ."""
645+ --debug-stats Print information that could be helpful for debugging testset slowdowns ."""
646646
647647 if ! isempty (custom)
648648 usage *= " \n\n Custom arguments:"
@@ -657,7 +657,7 @@ function parse_args(args; custom::Array{String} = String[])
657657
658658 jobs = extract_flag! (args, " --jobs" ; typ = Int)
659659 verbose = extract_flag! (args, " --verbose" )
660- debug_timing = extract_flag! (args, " --debug-timing " )
660+ debug_stats = extract_flag! (args, " --debug-stats " )
661661 quickfail = extract_flag! (args, " --quickfail" )
662662 list = extract_flag! (args, " --list" )
663663
@@ -672,7 +672,7 @@ function parse_args(args; custom::Array{String} = String[])
672672 error (" Unknown test options `$(join (optlike_args, " " )) ` (try `--help` for usage instructions)" )
673673 end
674674
675- return ParsedArgs (jobs, verbose, debug_timing , quickfail, list, custom_args, args)
675+ return ParsedArgs (jobs, verbose, debug_stats , quickfail, list, custom_args, args)
676676end
677677
678678"""
@@ -872,7 +872,7 @@ function runtests(mod::Module, args::ParsedArgs;
872872 stderr . lock = print_lock
873873 end
874874
875- io_ctx = test_IOContext (stdout , stderr , print_lock, name_align, ! isnothing (args. debug_timing ))
875+ io_ctx = test_IOContext (stdout , stderr , print_lock, name_align, ! isnothing (args. debug_stats ))
876876 print_header (io_ctx, testgroupheader, workerheader)
877877
878878 status_lines_visible = Ref (0 )
0 commit comments