diff options
Diffstat (limited to 'crates/ra_prof')
-rw-r--r-- | crates/ra_prof/src/lib.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/ra_prof/src/lib.rs b/crates/ra_prof/src/lib.rs index 0107f7de9..abddff960 100644 --- a/crates/ra_prof/src/lib.rs +++ b/crates/ra_prof/src/lib.rs | |||
@@ -52,6 +52,12 @@ pub struct Filter { | |||
52 | allowed: Vec<String>, | 52 | allowed: Vec<String>, |
53 | } | 53 | } |
54 | 54 | ||
55 | impl Filter { | ||
56 | pub fn new(depth: usize, allowed: Vec<String>) -> Filter { | ||
57 | Filter { depth, allowed } | ||
58 | } | ||
59 | } | ||
60 | |||
55 | struct ProfileStack { | 61 | struct ProfileStack { |
56 | starts: Vec<Instant>, | 62 | starts: Vec<Instant>, |
57 | messages: Vec<Message>, | 63 | messages: Vec<Message>, |