aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_prof
diff options
context:
space:
mode:
authorSergey Parilin <[email protected]>2019-04-02 15:52:04 +0100
committerSergey Parilin <[email protected]>2019-04-02 15:52:04 +0100
commit9b73f809596e955216dde24fcf921d6985a1a767 (patch)
tree016b82dc06800a174c49a0ba88957df9c91d1906 /crates/ra_prof
parentef02c3c038812897cd96789fa35770e4215d27e8 (diff)
PR issuse resolved
Diffstat (limited to 'crates/ra_prof')
-rw-r--r--crates/ra_prof/src/lib.rs6
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
55impl Filter {
56 pub fn new(depth: usize, allowed: Vec<String>) -> Filter {
57 Filter { depth, allowed }
58 }
59}
60
55struct ProfileStack { 61struct ProfileStack {
56 starts: Vec<Instant>, 62 starts: Vec<Instant>,
57 messages: Vec<Message>, 63 messages: Vec<Message>,