From d621533f15871ce233e3a1dcc0fb10a631090678 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 26 Jun 2019 11:11:28 +0300 Subject: 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! --- crates/ra_batch/Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crates/ra_batch') 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" } ra_hir = { path = "../ra_hir" } ra_project_model = { path = "../ra_project_model" } +[dependencies.ra_prof] +path = "../ra_prof" +# features = [ "cpuprofiler" ] + [dev-dependencies] test_utils = { path = "../test_utils" } -- cgit v1.2.3