@@ -4,18 +4,12 @@ Summarize is a tool to produce a human readable summary of `measureme` profiling
4
4
5
5
## Installing summarize
6
6
7
- To use this tool you will first want to build it. To do this follow the steps
8
- below:
7
+ To use this tool you will first want to install it:
9
8
10
9
``` bash
11
- $ git clone https://github.com/rust-lang/measureme.git
12
- $ cd measureme/summarize
13
- $ cargo +nightly build --release
10
+ $ cargo install --git https://github.com/rust-lang/measureme summarize
14
11
```
15
12
16
- This will compile the ` summarize ` binary which we will need later. It will be located in
17
- the ` measureme/target/release ` folder (ie. not in the ` summarize ` folder).
18
-
19
13
## Profiling the nightly compiler
20
14
21
15
To profile the nightly compiler first ensure that you have a recent nightly compiler by
@@ -39,11 +33,11 @@ have three files in your directory named `pid-{pid}.events`, `pid-{pid}.string_d
39
33
` pid-{pid}.string_index ` , which contain the profiler data. (If you just got a
40
34
` regex.profile_events.json ` file instead, your compiler is too old.)
41
35
42
- You can now use the ` summarize ` tool we compiled in the previous section to view the
36
+ You can now use the ` summarize ` tool we installed in the previous section to view the
43
37
contents of these files:
44
38
45
39
``` bash
46
- $ /path/to/measureme/target/release/ summarize summarize id-{pid}
40
+ $ summarize summarize id-{pid}
47
41
+------------------------+-----------+-----------------+------------+------------+--------------+-----------------------+
48
42
| Item | Self time | % of total time | Item count | Cache hits | Blocked time | Incremental load time |
49
43
+------------------------+-----------+-----------------+------------+------------+--------------+-----------------------+
@@ -98,7 +92,7 @@ as before: (with regex as example)
98
92
$ git clone https://github.com/rust-lang/regex.git
99
93
$ cd regex
100
94
$ cargo +mytoolchain rustc -- -Z self-profile
101
- $ /path/to/measureme/target/release/ summarize summarize pid-{pid}
95
+ $ summarize summarize pid-{pid}
102
96
+------------------------+-----------+-----------------+------------+------------+--------------+-----------------------+
103
97
| Item | Self time | % of total time | Item count | Cache hits | Blocked time | Incremental load time |
104
98
+------------------------+-----------+-----------------+------------+------------+--------------+-----------------------+
@@ -152,7 +146,7 @@ The `diff` sub command allows you to compare the performance of two different pr
152
146
The output is a table like that of the ` summarize ` sub command but it instead shows the differences in each metric.
153
147
154
148
``` bash
155
- $ /path/to/measureme/target/release/ summarize diff base-profile changed-profile
149
+ $ summarize diff base-profile changed-profile
156
150
+---------------------------+--------------+------------+------------+--------------+-----------------------+
157
151
| Item | Self Time | Item count | Cache hits | Blocked time | Incremental load time |
158
152
+---------------------------+--------------+------------+------------+--------------+-----------------------+
0 commit comments