Files
bun.sh/docs
Claude Bot d775d767f0 Add comprehensive documentation for --trace flag
Added two documentation files to help users and future developers
understand and use the trace functionality:

1. docs/cli/trace.md - User-facing documentation covering:
   - Usage examples and CLI syntax
   - Complete list of traced operations
   - Trace event format and fields
   - Analysis examples with jq
   - Common use cases (debugging, testing, AI analysis)
   - Performance impact details
   - Implementation details

2. test/js/bun/trace/README.md - Developer documentation covering:
   - Test file organization
   - How to write new trace tests
   - Important test patterns (instrumented vs non-instrumented ops)
   - Common assertions and debugging tips
   - Coverage matrix showing what's tested
   - Guidelines for adding new trace points

These docs will help future Claudes (and humans) effectively use
and extend the trace functionality.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-07 03:12:50 +00:00
..
2025-11-10 17:38:48 -08:00

Logo

Bun Documentation

Official documentation for Bun: the fast, all-in-one JavaScript runtime.

Development

Install the Mintlify CLI to preview the documentation locally:

bun install -g mint

Run the development server:

mint dev

The site will be available at http://localhost:3000.

Contributing

Contributions are welcome! Please open an issue or submit a pull request.