Skip to content

Commit 72e0cad

Browse files
committed
Add a readme for summarize
1 parent 7b0166d commit 72e0cad

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

summarize/Readme.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# summarize
2+
3+
Summarize is a tool to produce a human readable summary of `mesaurme` profiling data.
4+
5+
## Example
6+
7+
```bash
8+
$ git clone https://github.com/rust-lang/regex.git
9+
10+
$ cd regex
11+
12+
$ cargo rustc -- -Z self-profile
13+
14+
$ summarize pid-{pid}
15+
16+
+------------------------+-----------+-----------------+------------+------------+--------------+-----------------------+
17+
| Item | Self time | % of total time | Item count | Cache hits | Blocked time | Incremental load time |
18+
+------------------------+-----------+-----------------+------------+------------+--------------+-----------------------+
19+
| LLVM_emit_obj | 4.51s | 41.432 | 141 | 0 | 0.00ns | 0.00ns |
20+
+------------------------+-----------+-----------------+------------+------------+--------------+-----------------------+
21+
| LLVM_module_passes | 1.05s | 9.626 | 140 | 0 | 0.00ns | 0.00ns |
22+
+------------------------+-----------+-----------------+------------+------------+--------------+-----------------------+
23+
| LLVM_make_bitcode | 712.94ms | 6.543 | 140 | 0 | 0.00ns | 0.00ns |
24+
+------------------------+-----------+-----------------+------------+------------+--------------+-----------------------+
25+
| typeck_tables_of | 542.23ms | 4.976 | 17470 | 16520 | 0.00ns | 0.00ns |
26+
+------------------------+-----------+-----------------+------------+------------+--------------+-----------------------+
27+
| codegen | 366.82ms | 3.366 | 141 | 0 | 0.00ns | 0.00ns |
28+
+------------------------+-----------+-----------------+------------+------------+--------------+-----------------------+
29+
| optimized_mir | 188.22ms | 1.727 | 11668 | 9114 | 0.00ns | 0.00ns |
30+
+------------------------+-----------+-----------------+------------+------------+--------------+-----------------------+
31+
| mir_built | 156.30ms | 1.434 | 2040 | 1020 | 0.00ns | 0.00ns |
32+
+------------------------+-----------+-----------------+------------+------------+--------------+-----------------------+
33+
| evaluate_obligation | 151.95ms | 1.394 | 33134 | 23817 | 0.00ns | 0.00ns |
34+
+------------------------+-----------+-----------------+------------+------------+--------------+-----------------------+
35+
| LLVM_compress_bitcode | 126.55ms | 1.161 | 140 | 0 | 0.00ns | 0.00ns |
36+
+------------------------+-----------+-----------------+------------+------------+--------------+-----------------------+
37+
| codegen crate | 119.08ms | 1.093 | 1 | 0 | 0.00ns | 0.00ns |
38+
+------------------------+-----------+-----------------+------------+------------+--------------+-----------------------+
39+
| mir_const | 117.82ms | 1.081 | 1050 | 30 | 0.00ns | 0.00ns |
40+
+------------------------+-----------+-----------------+------------+------------+--------------+-----------------------+
41+
42+
(many more rows elided)
43+
44+
Total cpu time: 10.896488447s
45+
46+
```

0 commit comments

Comments
 (0)