aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_prof/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_prof/src')
-rw-r--r--crates/ra_prof/src/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/ra_prof/src/lib.rs b/crates/ra_prof/src/lib.rs
index 121a62813..c7c21b6d2 100644
--- a/crates/ra_prof/src/lib.rs
+++ b/crates/ra_prof/src/lib.rs
@@ -104,6 +104,10 @@ pub struct Filter {
104} 104}
105 105
106impl Filter { 106impl Filter {
107 pub fn disabled() -> Filter {
108 Filter::new(0, Vec::new())
109 }
110
107 pub fn new(depth: usize, allowed: Vec<String>) -> Filter { 111 pub fn new(depth: usize, allowed: Vec<String>) -> Filter {
108 Filter { depth, allowed } 112 Filter { depth, allowed }
109 } 113 }