Skip to content

Commit

Permalink
fix GC time percentage output (#1576)
Browse files Browse the repository at this point in the history
  • Loading branch information
ranocha authored Jul 19, 2023
1 parent 3753846 commit b0ec66e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/callbacks_step/analysis.jl
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ function (analysis_callback::AnalysisCallback)(u_ode, du_ode, integrator, semi)
gc_time_absolute = 1.0e-9 * (Base.gc_time_ns() - analysis_callback.start_gc_time)

# Compute the percentage of total time that was spent in garbage collection
gc_time_percentage = gc_time_absolute / runtime_absolute
gc_time_percentage = gc_time_absolute / runtime_absolute * 100

# Obtain the current memory usage of the Julia garbage collector, in MiB, i.e., the total size of
# objects in memory that have been allocated by the JIT compiler or the user code.
Expand Down

0 comments on commit b0ec66e

Please sign in to comment.