Skip to content

Commit

Permalink
Update readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
RazrFalcon committed Dec 30, 2021
1 parent 4168212 commit 5542b9c
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

Find out what takes most of the space in your executable.

Inspired by [google/bloaty](/~https://github.com/google/bloaty).
Supports ELF (Linux, BSD), Mach-O (macOS) and PE (Windows) binaries.

**Note:** supports ELF (Linux, BSD), Mach-O (macOS) and PE (Windows) binaries.
WASM is not supported. Use [twiggy](/~https://github.com/rustwasm/twiggy) instead.

**Note:** WASM is not supported. Prefer [twiggy](/~https://github.com/rustwasm/twiggy) instead.
Inspired by [google/bloaty](/~https://github.com/google/bloaty).

### Install

Expand All @@ -17,7 +17,7 @@ cargo install cargo-bloat
or

```bash
cargo install cargo-bloat --no-default-features
cargo install cargo-bloat --no-default-features
```

if you don't need regex filtering using the `--filter` option.
Expand Down Expand Up @@ -91,6 +91,27 @@ File .text Size Crate Name
0.5% 3.6% 13.5KiB filtered data size, the file size is 2.8MiB
```

Get a list of crates that took longest to compile:

```
% cargo bloat --time -j 1
Time Crate
1.42s pdb
1.37s regex_syntax
1.11s cargo_bloat
0.96s regex
0.58s binfarce
0.54s json
0.45s libc
0.22s uuid
0.20s fallible_iterator
0.19s pico_args
0.18s scroll
0.12s memmap2
0.09s multimap
0.06s term_size
```

Flags specific for `cargo-bloat`:
```
--crates Per crate bloatedness
Expand Down

0 comments on commit 5542b9c

Please sign in to comment.