diff options
author | Sergey Parilin <[email protected]> | 2019-04-02 15:52:04 +0100 |
---|---|---|
committer | Sergey Parilin <[email protected]> | 2019-04-02 15:52:04 +0100 |
commit | 9b73f809596e955216dde24fcf921d6985a1a767 (patch) | |
tree | 016b82dc06800a174c49a0ba88957df9c91d1906 /crates/ra_prof/src | |
parent | ef02c3c038812897cd96789fa35770e4215d27e8 (diff) |
PR issuse resolved
Diffstat (limited to 'crates/ra_prof/src')
-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>, |