@@ -4,18 +4,12 @@ Summarize is a tool to produce a human readable summary of `measureme` profiling
44
55## Installing summarize
66
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:
98
109``` 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
1411```
1512
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-
1913## Profiling the nightly compiler
2014
2115To 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
3933` pid-{pid}.string_index ` , which contain the profiler data. (If you just got a
4034` regex.profile_events.json ` file instead, your compiler is too old.)
4135
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
4337contents of these files:
4438
4539``` bash
46- $ /path/to/measureme/target/release/ summarize summarize id-{pid}
40+ $ summarize summarize id-{pid}
4741+------------------------+-----------+-----------------+------------+------------+--------------+-----------------------+
4842| Item | Self time | % of total time | Item count | Cache hits | Blocked time | Incremental load time |
4943+------------------------+-----------+-----------------+------------+------------+--------------+-----------------------+
@@ -98,7 +92,7 @@ as before: (with regex as example)
9892$ git clone https://github.com/rust-lang/regex.git
9993$ cd regex
10094$ cargo +mytoolchain rustc -- -Z self-profile
101- $ /path/to/measureme/target/release/ summarize summarize pid-{pid}
95+ $ summarize summarize pid-{pid}
10296+------------------------+-----------+-----------------+------------+------------+--------------+-----------------------+
10397| Item | Self time | % of total time | Item count | Cache hits | Blocked time | Incremental load time |
10498+------------------------+-----------+-----------------+------------+------------+--------------+-----------------------+
@@ -152,7 +146,7 @@ The `diff` sub command allows you to compare the performance of two different pr
152146The output is a table like that of the ` summarize ` sub command but it instead shows the differences in each metric.
153147
154148``` bash
155- $ /path/to/measureme/target/release/ summarize diff base-profile changed-profile
149+ $ summarize diff base-profile changed-profile
156150+---------------------------+--------------+------------+------------+--------------+-----------------------+
157151| Item | Self Time | Item count | Cache hits | Blocked time | Incremental load time |
158152+---------------------------+--------------+------------+------------+--------------+-----------------------+
0 commit comments