Repository navigation
Add the measurement tools under tools/ - #7
Merged
Merged
Conversation
…r tools/ `tools/` holds what found where the time goes, so the next round starts from the same instruments: a watchdog for bounded runs, bun scripts that fold macOS `sample` profiles (per function, per compiler pass, by kind of work), a crate timing frontend's parser against rust-analyzer's and syn's, and the recipe that reads std's dependency closure and three registry crates' from source with their metadata, with the checks run against tokio. Every location is a parameter. `cargo publish` leaves the directory out.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
tools/, the instruments behind the speed work (#5) and the dependency work (#6), so the next round of measurement starts from them instead of rebuilding them.tools/README.mdsays what each one does.bounded.sh: run a command with a watchdog (macOS has notimeout).profile/: bun scripts that fold macOSsampleoutput: per function, callers and callees, own time per compiler pass (phase.ts), own time by kind of work (share.ts), and A/B aggregation.parse-ref/: frontend's parser timed against rust-analyzer's and syn's (a crate of its own, outside the workspace).deps/:chain.sh, the exact recipe that reads std's closure and anyhow, serde_json and tokio with theirs, from source, withfrontend-facts, writing each crate's metadata; andcheck.shwith three fixtures that check a file against tokio (clean, E0599, E0061).Every path is a parameter (
LIBRARY,REGISTRY,OUT,FACTS) or relative to the script; nothing names a machine or a caller. POSIXshand bun only.Cargo.tomlexcludestools/from the published package.Checked:
sh -non the scripts; the profile scripts run from their new location on a saved profile.