diff options
author | Aleksey Kladov <[email protected]> | 2019-06-26 09:11:28 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-06-26 09:11:28 +0100 |
commit | d621533f15871ce233e3a1dcc0fb10a631090678 (patch) | |
tree | 53bfceb17b0d730490e8f489c0c0611433de46e5 /crates/ra_prof/Cargo.toml | |
parent | 0129790a8f84a0858abcb1448e1052caa01fc41c (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_prof/Cargo.toml')
-rw-r--r-- | crates/ra_prof/Cargo.toml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ra_prof/Cargo.toml b/crates/ra_prof/Cargo.toml index d55af18f5..787e18385 100644 --- a/crates/ra_prof/Cargo.toml +++ b/crates/ra_prof/Cargo.toml | |||
@@ -9,3 +9,4 @@ publish = false | |||
9 | once_cell = "0.2.0" | 9 | once_cell = "0.2.0" |
10 | itertools = "0.8.0" | 10 | itertools = "0.8.0" |
11 | backtrace = "0.3.28" | 11 | backtrace = "0.3.28" |
12 | cpuprofiler = { version = "0.0.3", optional = true } | ||