Skip to content

Commit 8214251

Browse files
committed
Update docs for 0.8 release
1 parent 265b8a2 commit 8214251

File tree

5 files changed

+31
-9
lines changed

5 files changed

+31
-9
lines changed

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Changelog
22

3+
## [0.8.0] - 2020-10-01
4+
### Added
5+
- `analyzeme`: Profiling data can now be constructed directly from memory without having to touch the filesystem ([GH-123])
6+
- `summarize`: A new "Time" column shows the total amount of time spent executing the query including sub-queries ([GH-109])
7+
8+
### Changed
9+
- `crox`: Event argument data is now included in the output file ([GH-108])
10+
- `measureme`: Trace data is now recorded into a single file instead of three files ([GH-132])
11+
- `mmview`: Do not panic when there are no events ([GH-119])
12+
- `summarize`: Time spent in incremental result cache loading and query blocking now counts toward self-time for the query ([GH-104])
13+
- `summarize`: Improve support for loading trace files created by programs other than rustc ([GH-116])
14+
- `summarize`: Only show the "Cache hits", "Blocked Time" and "Incremental load time" columns if that data is present in the trace ([GH-116])
15+
316
## [0.7.1] - 2020-01-02
417
### Changed
518
- `measureme`: Fix compilation error on big endian systems ([GH-103])
@@ -51,6 +64,7 @@
5164

5265
## [0.2.0] - 2019-04-10
5366

67+
[0.8.0]: https://github.com/rust-lang/measureme/releases/tag/0.8.0
5468
[0.7.1]: https://github.com/rust-lang/measureme/releases/tag/0.7.1
5569
[0.7.0]: https://github.com/rust-lang/measureme/releases/tag/0.7.0
5670
[0.6.0]: https://github.com/rust-lang/measureme/releases/tag/0.6.0
@@ -79,3 +93,10 @@
7993
[GH-98]: https://github.com/rust-lang/measureme/pull/98
8094
[GH-101]: https://github.com/rust-lang/measureme/pull/101
8195
[GH-103]: https://github.com/rust-lang/measureme/pull/103
96+
[GH-104]: https://github.com/rust-lang/measureme/pull/104
97+
[GH-108]: https://github.com/rust-lang/measureme/pull/108
98+
[GH-109]: https://github.com/rust-lang/measureme/pull/109
99+
[GH-116]: https://github.com/rust-lang/measureme/pull/116
100+
[GH-119]: https://github.com/rust-lang/measureme/pull/119
101+
[GH-123]: https://github.com/rust-lang/measureme/pull/123
102+
[GH-132]: https://github.com/rust-lang/measureme/pull/132

crox/Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ $ cargo rustc -- -Z self-profile
1919
$ # Install crox if you haven't done so yet.
2020
$ cargo install --git https://github.com/rust-lang/measureme crox
2121
22-
$ crox {crate name}-{pid}
22+
$ crox {crate name}-{pid}.mm_profdata
2323
```
2424

2525
3. Open Chrome

flamegraph/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ $ cd regex
1515

1616
$ cargo rustc -- -Z self-profile
1717

18-
$ flamegraph regex-{pid}
18+
$ flamegraph regex-{pid}.mm_profdata
1919

2020
$ open rustc.svg
2121
```

stack_collapse/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ $ cd regex
1515

1616
$ cargo rustc -- -Z self-profile
1717

18-
$ stack_collapse regex-{pid}
18+
$ stack_collapse regex-{pid}.mm_profdata
1919

2020
$ ../path/to/FlameGraph/flamegraph.pl out.stacks_folded > rustc.svg
2121

summarize/Readme.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,16 @@ $ cargo +nightly rustc -- -Z self-profile
2929
```
3030

3131
The commands above will run `rustc` with the flag that enables profiling. You should now
32-
have three files in your directory named `pid-{pid}.events`, `pid-{pid}.string_data` and
33-
`pid-{pid}.string_index`, which contain the profiler data. (If you just got a
34-
`regex.profile_events.json` file instead, your compiler is too old.)
32+
have a file in your directory named `regex-{pid}.mm_profdata` which contains the profiler data. (If
33+
you got three files instead, you will need to use an older version of the `summarize` tool such as
34+
the `0.7.1` release to read the data:
35+
`cargo install --git https://github.com/rust-lang/measureme --tag 0.7.1 summarize`)
3536

3637
You can now use the `summarize` tool we installed in the previous section to view the
3738
contents of these files:
3839

3940
```bash
40-
$ summarize summarize id-{pid}
41+
$ summarize summarize regex-{pid}.mm_profdata
4142
+------------------------+-----------+-----------------+------------+------------+--------------+-----------------------+
4243
| Item | Self time | % of total time | Item count | Cache hits | Blocked time | Incremental load time |
4344
+------------------------+-----------+-----------------+------------+------------+--------------+-----------------------+
@@ -92,7 +93,7 @@ as before: (with regex as example)
9293
$ git clone https://github.com/rust-lang/regex.git
9394
$ cd regex
9495
$ cargo +mytoolchain rustc -- -Z self-profile
95-
$ summarize summarize pid-{pid}
96+
$ summarize summarize regex-{pid}.mm_profdata
9697
+------------------------+-----------+-----------------+------------+------------+--------------+-----------------------+
9798
| Item | Self time | % of total time | Item count | Cache hits | Blocked time | Incremental load time |
9899
+------------------------+-----------+-----------------+------------+------------+--------------+-----------------------+
@@ -146,7 +147,7 @@ The `diff` sub command allows you to compare the performance of two different pr
146147
The output is a table like that of the `summarize` sub command but it instead shows the differences in each metric.
147148

148149
```bash
149-
$ summarize diff base-profile changed-profile
150+
$ summarize diff base-profile.mm_profdata changed-profile.mm_profdata
150151
+---------------------------+--------------+------------+------------+--------------+-----------------------+
151152
| Item | Self Time | Item count | Cache hits | Blocked time | Incremental load time |
152153
+---------------------------+--------------+------------+------------+--------------+-----------------------+

0 commit comments

Comments
 (0)