Skip to content

Commit

Permalink
modified: Julia/memory_usage.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
jvo203 committed Feb 17, 2022
1 parent ba6a76d commit 8a99e3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Julia/memory_usage.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ data = CSV.read("memory_usage.csv", DataFrame)
println(data[1:5, :])

timestamp = data[:, 1]
allocated = 4 * data[:, 2] ./ (1024^2) # kB for rss, bytes otherwise (Rust and FORTRAN)
# allocated = 4 * data[:, 2] ./ (1024^3)
allocated = 4 * data[:, 2] ./ (1024^2) # kB for rss, bytes otherwise (Rust and FORTRAN), 4 Julia workers

# plot(timestamp, allocated, label = "jemalloc stats.allocated memory [GB]", xlabel = "elapsed time [s]", ylabel = "memory [GB]", legend = :bottomright, title = "memory consumption")
plot(timestamp, allocated, label = "allocated memory [GB]", xlabel = "elapsed time [s]", ylabel = "memory [GB]", legend = :bottomright, title = "Julia memory consumption")
Expand Down

0 comments on commit 8a99e3f

Please sign in to comment.