aboutsummaryrefslogtreecommitdiff
path: root/crates/rust-analyzer/src/benchmarks.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/rust-analyzer/src/benchmarks.rs')
-rw-r--r--crates/rust-analyzer/src/benchmarks.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/rust-analyzer/src/benchmarks.rs b/crates/rust-analyzer/src/benchmarks.rs
index a6f997af8..bf569b40b 100644
--- a/crates/rust-analyzer/src/benchmarks.rs
+++ b/crates/rust-analyzer/src/benchmarks.rs
@@ -51,6 +51,7 @@ fn benchmark_integrated_highlighting() {
51 } 51 }
52 52
53 profile::init_from("*>100"); 53 profile::init_from("*>100");
54 // let _s = profile::heartbeat_span();
54 55
55 { 56 {
56 let _it = stdx::timeit("change"); 57 let _it = stdx::timeit("change");
@@ -63,6 +64,7 @@ fn benchmark_integrated_highlighting() {
63 64
64 { 65 {
65 let _it = stdx::timeit("after change"); 66 let _it = stdx::timeit("after change");
67 let _span = profile::cpu_span();
66 let analysis = host.analysis(); 68 let analysis = host.analysis();
67 analysis.highlight_as_html(file_id, false).unwrap(); 69 analysis.highlight_as_html(file_id, false).unwrap();
68 } 70 }