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.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ra_prof/src/lib.rs b/crates/ra_prof/src/lib.rs
index 660d85b42..6853a4794 100644
--- a/crates/ra_prof/src/lib.rs
+++ b/crates/ra_prof/src/lib.rs
@@ -315,6 +315,7 @@ fn idx_to_children(msgs: &[Message]) -> Vec<Vec<usize>> {
315} 315}
316 316
317/// Prints backtrace to stderr, useful for debugging. 317/// Prints backtrace to stderr, useful for debugging.
318#[cfg(feature = "backtrace")]
318pub fn print_backtrace() { 319pub fn print_backtrace() {
319 let bt = backtrace::Backtrace::new(); 320 let bt = backtrace::Backtrace::new();
320 eprintln!("{:?}", bt); 321 eprintln!("{:?}", bt);