aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_prof/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_prof/src')
-rw-r--r--crates/ra_prof/src/memory_usage.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_prof/src/memory_usage.rs b/crates/ra_prof/src/memory_usage.rs
index 7f857942d..8e8cb7299 100644
--- a/crates/ra_prof/src/memory_usage.rs
+++ b/crates/ra_prof/src/memory_usage.rs
@@ -8,10 +8,10 @@ pub struct MemoryUsage {
8impl MemoryUsage { 8impl MemoryUsage {
9 #[cfg(feature = "jemalloc")] 9 #[cfg(feature = "jemalloc")]
10 pub fn current() -> MemoryUsage { 10 pub fn current() -> MemoryUsage {
11 jemalloc_ctl::epoch().unwrap(); 11 jemalloc_ctl::epoch::advance().unwrap();
12 MemoryUsage { 12 MemoryUsage {
13 allocated: Bytes(jemalloc_ctl::stats::allocated().unwrap()), 13 allocated: Bytes(jemalloc_ctl::stats::allocated::read().unwrap()),
14 resident: Bytes(jemalloc_ctl::stats::resident().unwrap()), 14 resident: Bytes(jemalloc_ctl::stats::resident::read().unwrap()),
15 } 15 }
16 } 16 }
17 17