aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_batch
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-06-26 09:11:28 +0100
committerAleksey Kladov <[email protected]>2019-06-26 09:11:28 +0100
commitd621533f15871ce233e3a1dcc0fb10a631090678 (patch)
tree53bfceb17b0d730490e8f489c0c0611433de46e5 /crates/ra_batch
parent0129790a8f84a0858abcb1448e1052caa01fc41c (diff)
add cpuprofile to ra_prof
Now, one can use `let _p = ra_prof::cpu_profiler()` to capture profile of a block of code. This is not an out of the box experience, as that relies on gperfools See the docs on https://github.com/AtheMathmo/cpuprofiler for more!
Diffstat (limited to 'crates/ra_batch')
-rw-r--r--crates/ra_batch/Cargo.toml4
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/ra_batch/Cargo.toml b/crates/ra_batch/Cargo.toml
index 7d8837fc3..f521937c5 100644
--- a/crates/ra_batch/Cargo.toml
+++ b/crates/ra_batch/Cargo.toml
@@ -15,5 +15,9 @@ ra_ide_api = { path = "../ra_ide_api" }
15ra_hir = { path = "../ra_hir" } 15ra_hir = { path = "../ra_hir" }
16ra_project_model = { path = "../ra_project_model" } 16ra_project_model = { path = "../ra_project_model" }
17 17
18[dependencies.ra_prof]
19path = "../ra_prof"
20# features = [ "cpuprofiler" ]
21
18[dev-dependencies] 22[dev-dependencies]
19test_utils = { path = "../test_utils" } 23test_utils = { path = "../test_utils" }