tkf / BenchmarkCI.jl
Showing 1 of 1 files from the diff.

@@ -132,21 +132,17 @@
Loading
132 132
    end
133 133
end
134 134
135 -
function noisily(f)
136 -
    if is_in_ci()
137 -
        ch = Channel() do ch
138 -
            t0 = time_ns()
139 -
            while true
140 -
                sleep(60 * 5)
141 -
                isopen(ch) || break
142 -
                minutes = floor(Int, (time_ns() - t0) / 1e9 / 60)
143 -
                @info "$minutes minutes passed.  Still running `judge`..."
144 -
            end
135 +
function noisily(f, yes::Bool = is_in_ci(); interval = 60 * 5)
136 +
    if yes
137 +
        t0 = time_ns()
138 +
        timer = Timer(interval; interval = interval) do _
139 +
            tstr = format_period(floor(Int, (time_ns() - t0) / 1e9))
140 +
            @info "$tstr passed.  Still running `judge`..."
145 141
        end
146 142
        try
147 143
            f()
148 144
        finally
149 -
            close(ch)
145 +
            close(timer)
150 146
        end
151 147
    else
152 148
        f()
Files Coverage
src 83.55%
Project Totals (2 files) 83.55%
Untitled

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading