@@ -146,6 +146,9 @@ and visit `localhost:2346/compare.html` in a web browser.
146
146
Wait for the "Loading complete" message; it should come within a couple dozen
147
147
seconds (or faster, depending on how much data you've collected).
148
148
149
+ Enter the IDs for two runs in the "Commit/Date A" and "Commit/Date B" text
150
+ boxes (the two IDs can be the same) and click on "Submit".
151
+
149
152
If you've collected new data, you can run `curl -X POST
150
153
localhost:2346/perf/onpush` to update the site's view of the data, or just
151
154
restart the server.
@@ -186,20 +189,23 @@ Without this you won't get useful file names and line numbers in the output.
186
189
187
190
To self-profile a local build:
188
191
```
189
- ./target/release/collector --output-repo $OUTPUT_DIR --self-profile \
190
- bench_local $PROFILER --rustc $RUSTC --cargo $CARGO $ID
192
+ ./target/release/collector --db $DATABASE --self-profile \
193
+ bench_local --rustc $RUSTC --cargo $CARGO $ID
191
194
```
192
195
193
196
Then view the results the same way as for the ` bench_local ` subcommand.
194
197
195
198
To profile a local build with a different profiler:
196
199
```
197
- ./target/release/collector --output-repo $OUTPUT_DIR \
198
- profile $PROFILER --rustc $RUSTC --cargo $CARGO $ID
200
+ ./target/release/collector profile $PROFILER \
201
+ --output $OUTPUT_DIR --rustc $RUSTC --cargo $CARGO $ID
199
202
```
200
203
201
- All the parts of this command are the same as for the ` bench_local ` subcommand,
202
- except that ` $PROFILER ` is one of the following.
204
+ This is similar to the ` bench_local ` subcommand, with a couple of exceptions.
205
+ First, ` $OUTPUT_DIR ` is a directory in which the output will be placed. If the
206
+ directory doesn't exist, it will be created.
207
+
208
+ Second, ` $PROFILER ` is one of the following.
203
209
- ` self-profile ` : Profile with rustc's ` -Zself-profile ` .
204
210
- ** Purpose** . This gives multiple high-level views of compiler performance,
205
211
in both tabular and graphical form.
0 commit comments