Skip to content

Commit

Permalink
Use Sys.word_size for the conversion to megabytes in merlin response
Browse files Browse the repository at this point in the history
Co-authored-by: Sonja Heinze <[email protected]>
  • Loading branch information
abbysmal and pitag-ha committed Nov 29, 2023
1 parent ad78865 commit 5217558
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frontend/ocamlmerlin/new/new_merlin.ml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ let run = function
in
let cpu_time = Misc.time_spent () -. start_cpu in
let gc_stats = Gc.quick_stat () in
let heap_mbytes = gc_stats.heap_words * 8 / 1_000_000 in
let heap_mbytes = gc_stats.heap_words * (Sys.word_size / 8) / 1_000_000 in
let clock_time = Unix.gettimeofday () *. 1000. -. start_clock in
let timing = Mpipeline.timing_information pipeline in
let pipeline_time =
Expand Down

0 comments on commit 5217558

Please sign in to comment.