Skip to content

Comments

feat: collect extract stats#57

Merged
Crauzer merged 1 commit intomainfrom
stats-flag
Feb 1, 2026
Merged

feat: collect extract stats#57
Crauzer merged 1 commit intomainfrom
stats-flag

Conversation

@Crauzer
Copy link
Member

@Crauzer Crauzer commented Feb 1, 2026

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds extraction summary statistics to wadtools extract, including counts, total bytes written, and a per-file-type breakdown.

Changes:

  • Introduces ExtractStats returned from Extractor::extract_chunks, tracking extracted/skipped counts, total bytes written, and counts by LeagueFileKind.
  • Adds an extract CLI flag to show stats and prints a formatted summary after extraction.
  • Moves format_size into utils for reuse and adds dashmap as a dependency to aggregate per-type counts concurrently.

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
crates/wadtools/src/utils/mod.rs Adds shared format_size() helper used by list/extract output.
crates/wadtools/src/main.rs Adds --stats/-s option to the extract subcommand and wires it into ExtractArgs.
crates/wadtools/src/extractor.rs Implements ExtractStats collection (bytes + per-type counts) during extraction.
crates/wadtools/src/commands/list.rs Switches to shared utils::format_size (removes local copy).
crates/wadtools/src/commands/extract.rs Prints extraction summary stats (including bytes and by-type breakdown).
crates/wadtools/Cargo.toml Adds dashmap dependency.
Cargo.lock Locks dashmap and transitive dependencies.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Crauzer Crauzer merged commit ff1eba2 into main Feb 1, 2026
3 checks passed
@Crauzer Crauzer deleted the stats-flag branch February 1, 2026 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant