diff options
Diffstat (limited to 'crates/ra_prof/src')
-rw-r--r-- | crates/ra_prof/src/lib.rs | 15 |
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 | ||
3 | use std::{ | 3 | use 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 | ||
13 | use once_cell::sync::Lazy; | ||
14 | use itertools::Itertools; | 16 | use itertools::Itertools; |
17 | use once_cell::sync::Lazy; | ||
15 | 18 | ||
16 | pub use crate::memory_usage::{MemoryUsage, Bytes}; | 19 | pub 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. |