Skip to content

Commit 7fa6cba

Browse files
committed
Change ./target/release example commands to cargo run --release
1 parent fcb6c92 commit 7fa6cba

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

site/frontend/src/pages/compare/compile/table/shortcuts/binary-size-shortcut.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ function normalizeBackend(backend: string): string {
3636
</Tooltip>
3737
</div>
3838

39-
<pre><code>./target/release/collector binary_stats compile \
39+
<pre><code>cargo run --release --bin collector \
40+
binary_stats compile \
4041
+{{ props.baseArtifact.commit }} \
4142
--rustc2 +{{ props.artifact.commit }} \
4243
--exact-match {{ testCase.benchmark }} \

site/frontend/src/pages/compare/compile/table/shortcuts/cachegrind-cmd.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ function normalizeScenario(scenario: string): string {
3636
</script>
3737

3838
<template>
39-
<pre><code>./target/release/collector profile_local cachegrind \
39+
<pre><code>cargo run --release --bin collector \
40+
profile_local cachegrind \
4041
+{{ firstCommit }} \<template v-if="props.baselineCommit !== undefined">
4142
--rustc2 +{{ props.commit }} \</template>
4243
--exact-match {{ testCase.benchmark }} \

site/frontend/src/pages/detailed-query/utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,23 +198,23 @@ export function createDownloadLinksData(selector: Selector | null): {
198198

199199
const localCommands = {
200200
base: state.base_commit
201-
? `./target/release/collector profile_local cachegrind
201+
? `cargo run --release --bin collector profile_local cachegrind
202202
+${state.base_commit} --exact-match ${benchName(
203203
state.benchmark
204204
)} --profiles
205205
${profile(state.benchmark)} --scenarios ${scenarioFilter(
206206
state.scenario
207207
)}`
208208
: "",
209-
new: `./target/release/collector profile_local cachegrind
209+
new: `cargo run --release --bin collector profile_local cachegrind
210210
+${state.commit} --exact-match ${benchName(
211211
state.benchmark
212212
)} --profiles
213213
${profile(state.benchmark)} --scenarios ${scenarioFilter(
214214
state.scenario
215215
)}`,
216216
diff: state.base_commit
217-
? `./target/release/collector profile_local cachegrind
217+
? `cargo run --release --bin collector profile_local cachegrind
218218
+${state.base_commit} --rustc2 +${
219219
state.commit
220220
} --exact-match ${benchName(state.benchmark)} --profiles

0 commit comments

Comments
 (0)