vercel / turborepo

Build system optimized for JavaScript and TypeScript, written in Rust
https://turbo.build/repo/docs
MIT License
26.21k stars 1.81k forks source link

Provide timings for each tasks #4064

Closed kevinsimper closed 1 year ago

kevinsimper commented 1 year ago

Which project is this feature idea for?

Turborepo

Describe the feature you'd like to request

We have a monorepo now with multiple apps and remote cache, so now it can be difficult to see if a optimization actually improves the speed of task.

Describe the solution you'd like

Allow giving a CLI argument --timing outputing how long each task took.

Describe alternatives you've considered

Timings could also be written to a json file which could be read by the CI if needed.

mehulkar commented 1 year ago

Hey @kevinsimper , I'm actively working on this. Keep an eye out for 1.9 release! I'm kind of keeping track of everything we're going to give you access to in https://github.com/vercel/turbo/pull/3431, but that PR itself is probably never getting merged (it's just my prototype work that I'm splitting off into reviewable / production worthy code)

mehulkar commented 1 year ago

Hey @kevinsimper this is now available in the latest canary. Try out the --summarize flag on any turbo run. Docs coming in https://github.com/vercel/turbo/pull/4467, when we have a stable release out.