Skip to content

Commit

Permalink
Add cms cache support to cache information
Browse files Browse the repository at this point in the history
  • Loading branch information
liam923 committed Aug 14, 2024
1 parent c452694 commit 34e5a90
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/kernel/mpipeline.ml
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,8 @@ let cache_information t =
`Assoc [ "hit", `Int h; "miss", `Int m ] in
let cmt_stat = Cmt_cache.get_cache_stats () in
let cmt = fmt_hit_miss cmt_stat.hit cmt_stat.miss in
let cms_stat = Cms_cache.get_cache_stats () in
let cms = fmt_hit_miss cms_stat.hit cmt_stat.miss in
let cmi_stat = Cmi_cache.get_cache_stats () in
let cmi = fmt_hit_miss cmi_stat.hit cmi_stat.miss in
Cmt_cache.clear_cache_stats ();
Expand All @@ -361,5 +363,6 @@ let cache_information t =
"ppx_phase" , fmt_bool !(t.ppx_cache_hit);
"typer" , typer;
"cmt" , cmt;
"cms" , cms;
"cmi" , cmi
]

0 comments on commit 34e5a90

Please sign in to comment.