diff options
Diffstat (limited to 'crates/profile')
-rw-r--r-- | crates/profile/src/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/profile/src/lib.rs b/crates/profile/src/lib.rs index 7cd01a7df..5ea5039db 100644 --- a/crates/profile/src/lib.rs +++ b/crates/profile/src/lib.rs | |||
@@ -50,10 +50,10 @@ impl Drop for Scope { | |||
50 | /// A wrapper around google_cpu_profiler. | 50 | /// A wrapper around google_cpu_profiler. |
51 | /// | 51 | /// |
52 | /// Usage: | 52 | /// Usage: |
53 | /// 1. Install gpref_tools (https://github.com/gperftools/gperftools), probably packaged with your Linux distro. | 53 | /// 1. Install gpref_tools (<https://github.com/gperftools/gperftools>), probably packaged with your Linux distro. |
54 | /// 2. Build with `cpu_profiler` feature. | 54 | /// 2. Build with `cpu_profiler` feature. |
55 | /// 3. Run the code, the *raw* output would be in the `./out.profile` file. | 55 | /// 3. Run the code, the *raw* output would be in the `./out.profile` file. |
56 | /// 4. Install pprof for visualization (https://github.com/google/pprof). | 56 | /// 4. Install pprof for visualization (<https://github.com/google/pprof>). |
57 | /// 5. Bump sampling frequency to once per ms: `export CPUPROFILE_FREQUENCY=1000` | 57 | /// 5. Bump sampling frequency to once per ms: `export CPUPROFILE_FREQUENCY=1000` |
58 | /// 6. Use something like `pprof -svg target/release/rust-analyzer ./out.profile` to see the results. | 58 | /// 6. Use something like `pprof -svg target/release/rust-analyzer ./out.profile` to see the results. |
59 | /// | 59 | /// |
@@ -75,7 +75,7 @@ impl Drop for Scope { | |||
75 | /// | 75 | /// |
76 | /// See this diff for how to profile completions: | 76 | /// See this diff for how to profile completions: |
77 | /// | 77 | /// |
78 | /// https://github.com/rust-analyzer/rust-analyzer/pull/5306 | 78 | /// <https://github.com/rust-analyzer/rust-analyzer/pull/5306> |
79 | #[derive(Debug)] | 79 | #[derive(Debug)] |
80 | pub struct CpuSpan { | 80 | pub struct CpuSpan { |
81 | _private: (), | 81 | _private: (), |