Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add jemalloc metrics (#5448)
Signed-off-by: Lingjing You <clylj135@gmail.com>
  • Loading branch information
Jing118 authored and sre-bot committed Sep 19, 2019
1 parent f2bb322 commit 30963e4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions components/tikv_alloc/src/jemalloc.rs
Expand Up @@ -37,6 +37,11 @@ pub fn fetch_stats() -> io::Result<Option<AllocStats>> {
("resident", stats::resident()?),
("mapped", stats::mapped()?),
("retained", stats::retained()?),
(
"dirty",
stats::resident()? - stats::active()? - stats::metadata()?,
),
("fragmentation", stats::active()? - stats::allocated()?),
]))
}

Expand Down

0 comments on commit 30963e4

Please sign in to comment.