Skip to content

feat: Make --profile and --anon-profile filename optional#11883

Merged
anthonyshew merged 2 commits intomainfrom
shew/360e5
Feb 17, 2026
Merged

feat: Make --profile and --anon-profile filename optional#11883
anthonyshew merged 2 commits intomainfrom
shew/360e5

Conversation

@anthonyshew
Copy link
Copy Markdown
Contributor

Summary

  • --profile and --anon-profile no longer require a filename argument
  • When no filename is provided, defaults to profile.<unix_timestamp_ms> (and profile.<unix_timestamp_ms>.md for the markdown summary)

Usage

# Before: filename required
turbo run build --profile my-trace.json

# Now: filename is optional
turbo run build --profile
# Produces profile.1739836800000 and profile.1739836800000.md

Testing

New tests cover:

  • CLI parsing accepts --profile without a value
  • Default filename generation produces profile.<timestamp> pattern
  • Explicit filenames still work as before
  • --profile and --anon-profile remain mutually exclusive

When no filename is provided, defaults to profile.<unix_timestamp_ms>
and profile.<unix_timestamp_ms>.md for the trace and markdown files.
@anthonyshew anthonyshew requested a review from a team as a code owner February 17, 2026 14:06
@anthonyshew anthonyshew requested review from tknickman and removed request for a team February 17, 2026 14:06
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Feb 17, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
examples-basic-web Ready Ready Preview, Comment, Open in v0 Feb 17, 2026 2:35pm
examples-designsystem-docs Ready Ready Preview, Comment, Open in v0 Feb 17, 2026 2:35pm
examples-gatsby-web Ready Ready Preview, Comment, Open in v0 Feb 17, 2026 2:35pm
examples-kitchensink-blog Ready Ready Preview, Comment, Open in v0 Feb 17, 2026 2:35pm
examples-nonmonorepo Ready Ready Preview, Comment, Open in v0 Feb 17, 2026 2:35pm
examples-svelte-web Building Building Preview, Comment, Open in v0 Feb 17, 2026 2:35pm
examples-tailwind-web Ready Ready Preview, Comment, Open in v0 Feb 17, 2026 2:35pm
examples-vite-web Ready Ready Preview, Comment, Open in v0 Feb 17, 2026 2:35pm
turbo-site Ready Ready Preview, Comment, Open in v0 Feb 17, 2026 2:35pm
turborepo-agents Ready Ready Preview, Comment, Open in v0 Feb 17, 2026 2:35pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
turborepo-test-coverage Skipped Skipped Open in v0 Feb 17, 2026 2:35pm

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 17, 2026

Coverage Report

Metric Coverage
Lines 76.50%
Functions 47.30%
Branches 0.00%

View full report

Comment thread crates/turborepo-lib/src/cli/mod.rs
@anthonyshew anthonyshew changed the title feat: Make --profile and --anon-profile filename optional feat: Make --profile and --anon-profile filename optional Feb 17, 2026
Comment thread apps/docs/content/docs/reference/run.mdx
When no filename is provided, defaults to profile.<unix_timestamp_ms>
and profile.<unix_timestamp_ms>.md for the trace and markdown files.
@anthonyshew
Copy link
Copy Markdown
Contributor Author

The Windows failure is a flake. Merging.

@anthonyshew anthonyshew merged commit 8e3395e into main Feb 17, 2026
100 of 102 checks passed
@anthonyshew anthonyshew deleted the shew/360e5 branch February 17, 2026 14:46
github-actions Bot added a commit that referenced this pull request Feb 17, 2026
## Release v2.8.10-canary.6

Versioned docs: https://v2-8-10-canary-6.turborepo.dev

### Changes

- release(turborepo): 2.8.10-canary.5 (#11884) (`5febe7f`)
- feat: Make `--profile` and `--anon-profile` filename optional (#11883)
(`8e3395e`)

---------

Co-authored-by: Turbobot <turbobot@vercel.com>
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