aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_prof/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_prof/src/lib.rs')
-rw-r--r--crates/ra_prof/src/lib.rs15
1 files changed, 9 insertions, 6 deletions
diff --git a/crates/ra_prof/src/lib.rs b/crates/ra_prof/src/lib.rs
index 6f7918745..919cc1b3c 100644
--- a/crates/ra_prof/src/lib.rs
+++ b/crates/ra_prof/src/lib.rs
@@ -2,18 +2,21 @@ mod memory_usage;
2 2
3use std::{ 3use std::{
4 cell::RefCell, 4 cell::RefCell,
5 time::{Duration, Instant}, 5 collections::HashSet,
6 mem,
7 io::{stderr, Write}, 6 io::{stderr, Write},
8 iter::repeat, 7 iter::repeat,
9 collections::HashSet, 8 mem,
10 sync::{RwLock, atomic::{AtomicBool, Ordering}}, 9 sync::{
10 atomic::{AtomicBool, Ordering},
11 RwLock,
12 },
13 time::{Duration, Instant},
11}; 14};
12 15
13use once_cell::sync::Lazy;
14use itertools::Itertools; 16use itertools::Itertools;
17use once_cell::sync::Lazy;
15 18
16pub use crate::memory_usage::{MemoryUsage, Bytes}; 19pub use crate::memory_usage::{Bytes, MemoryUsage};
17 20
18// We use jemalloc mainly to get heap usage statistics, actual performance 21// We use jemalloc mainly to get heap usage statistics, actual performance
19// difference is not measures. 22// difference is not measures.