aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_prof
diff options
context:
space:
mode:
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>,