Skip to content

Commit cbb8a8a

Browse files
authored
Merge branch 'master' into ripgrep-remove
2 parents fb843c5 + 0d9890f commit cbb8a8a

File tree

301 files changed

+94467
-8
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

301 files changed

+94467
-8
lines changed

ci/check-profiling.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ test -f results/eprintln-Test-helloworld-Check-Full
129129
test ! -s results/eprintln-Test-helloworld-Check-Full
130130

131131
# llvm-lines. `Debug` not `Check` because it doesn't support `Check` profiles.
132-
# Including both `helloworld` and `regex` benchmarks, as they exercise the
132+
# Including both `helloworld` and `regex-1.5.5` benchmarks, as they exercise the
133133
# zero dependency and the greater than zero dependency cases, respectively, the
134134
# latter of which has broken before.
135135
RUST_BACKTRACE=1 RUST_LOG=raw_cargo_messages=trace,collector=debug,rust_sysroot=debug \
@@ -138,12 +138,12 @@ RUST_BACKTRACE=1 RUST_LOG=raw_cargo_messages=trace,collector=debug,rust_sysroot=
138138
--id Test \
139139
--profiles Debug \
140140
--cargo $bindir/cargo \
141-
--include helloworld,regex \
141+
--include helloworld,regex-1.5.5 \
142142
--scenarios Full
143143
test -f results/ll-Test-helloworld-Debug-Full
144144
grep -q "Lines.*Copies.*Function name" results/ll-Test-helloworld-Debug-Full
145-
test -f results/ll-Test-regex-Debug-Full
146-
grep -q "Lines.*Copies.*Function name" results/ll-Test-regex-Debug-Full
145+
test -f results/ll-Test-regex-1.5.5-Debug-Full
146+
grep -q "Lines.*Copies.*Function name" results/ll-Test-regex-1.5.5-Debug-Full
147147

148148

149149
#----------------------------------------------------------------------------

collector/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,14 +189,14 @@ Finally, while most of the options you can pass to the collector are supported,
189189
the profilers used in the `profile_local` command are not. In Windows, the only currently supported
190190
profiler is the `self-profiler`.
191191

192-
As a complete example, let's run just the `regex` benchmark in the `Debug`
192+
As a complete example, let's run just the `regex-1.5.5` benchmark in the `Debug`
193193
profile with self-profiling results available:
194194

195195
```pwsh
196196
$env:XPERF="C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\xperf.exe"
197197
$env:TRACELOG="C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\tracelog.exe"
198-
.\target\release\collector.exe bench_local $env:RUST_ORIGINAL --id Original --profiles Debug --include regex --self-profile
199-
.\target\release\collector.exe bench_local $env:RUST_MODIFIED --id Modified --profiles Debug --include regex --self-profile
198+
.\target\release\collector.exe bench_local $env:RUST_ORIGINAL --id Original --profiles Debug --include regex-1.5.5 --self-profile
199+
.\target\release\collector.exe bench_local $env:RUST_MODIFIED --id Modified --profiles Debug --include regex-1.5.5 --self-profile
200200
.\target\release\site.exe .\results.db
201201
```
202202

collector/benchmarks/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ They mostly consist of real-world crates.
1717

1818
- **cargo-0.60.0**: The Rust package manager. A large program, and an important
1919
one in the Rust ecosystem.
20+
- **clap-3.1.6**: A command line argument parser. A crate used by many Rust
21+
programs.
22+
- **image-0.24.1**: Basic image processing functions and methods for
23+
converting to and from various image formats. Used often in graphics
24+
programming.
2025
- **clap-rs**: A command line argument parser. A crate used by many Rust
2126
programs.
2227
- **cranelift-codegen**: The largest crate from a code generator. Used by
@@ -33,6 +38,7 @@ They mostly consist of real-world crates.
3338
many Rust programs.
3439
- **piston-image**: A modular game engine. An interesting Rust program.
3540
- **regex**: A regular expression parser. Used by many Rust programs.
41+
- **regex-1.5.5**: A regular expression parser. Used by many Rust programs.
3642
- **ripgrep-13.0.0**: A line-oriented search tool. A widely-used utility.
3743
- **serde**: A serialization/deserialization crate. Used by many other
3844
Rust programs.
@@ -134,7 +140,7 @@ Rust code being written today.
134140
- **inflate**: An old implementation of the DEFLATE algorithm. Contains
135141
a very large function containing many locals and basic blocks, similar to
136142
`keccak` but less extreme.
137-
- **regex**: See above.
143+
- **regex**: See above. This is an older version of the crate.
138144
- **piston-image**: See above.
139145
- **style-servo**: An old version of Servo's `style` crate. A large crate, and
140146
one used by old versions of Firefox.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"git": {
3+
"sha1": "e702f42e5ec416b477dfc8f71d8caef3a3dff923"
4+
},
5+
"path_in_vcs": ""
6+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/src/output/usage.rs b/src/output/usage.rs
2+
index 45cfa746..5e6431ce 100644
3+
--- a/src/output/usage.rs
4+
+++ b/src/output/usage.rs
5+
@@ -15,6 +15,7 @@ pub(crate) struct Usage<'help, 'cmd> {
6+
7+
impl<'help, 'cmd> Usage<'help, 'cmd> {
8+
pub(crate) fn new(cmd: &'cmd Command<'help>) -> Self {
9+
+ println!("testing!");
10+
Usage {
11+
cmd,
12+
required: None,
13+

0 commit comments

Comments
 (0)