Skip to content

Output log directory if tracing mode is active#1085

Open
matt-koko wants to merge 1 commit intomainfrom
koko/log-tracing-dir
Open

Output log directory if tracing mode is active#1085
matt-koko wants to merge 1 commit intomainfrom
koko/log-tracing-dir

Conversation

@matt-koko
Copy link
Copy Markdown
Contributor

@matt-koko matt-koko commented Apr 7, 2026

Debugging quality of life.

Example output:

# start atlaspack with ATLASPACK_TRACING_MODE enabled
RUST_LOG="error,atlaspack=info" ATLASPACK_TRACING_MODE=stdout ATLASPACK_V3=false yarn start
Atlaspack tracing logs → /var/folders/5j/lrrnkpld5nnfrwbs29sg4th40000gn/T/atlaspack_trace/

Checklist

  • Existing or new tests cover this change
  • There is a changeset for this change, or one is not required
  • Added documentation for any new features to the docs/ folder

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 7, 2026

🦋 Changeset detected

Latest commit: b6422c6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 112 packages
Name Type
@atlaspack/rust Patch
@atlaspack/bundler-default Patch
atlaspack Patch
@atlaspack/cache Patch
@atlaspack/core Patch
@atlaspack/e2e-tests Patch
@atlaspack/fs Patch
@atlaspack/logger Patch
@atlaspack/source-map Patch
@atlaspack/utils Patch
@atlaspack/link Patch
@atlaspack/packaging-test-harness Patch
@atlaspack/optimizer-image Patch
@atlaspack/optimizer-inline-requires Patch
@atlaspack/packager-js Patch
@atlaspack/transformer-compiled-css-in-js Patch
@atlaspack/transformer-html Patch
@atlaspack/transformer-js Patch
@atlaspack/transformer-postcss Patch
@atlaspack/transformer-svg Patch
@atlaspack/transformer-tokens Patch
@atlaspack/node-resolver-core Patch
@atlaspack/config-default Patch
@atlaspack/test-utils Patch
@atlaspack/inspector Patch
@atlaspack/query Patch
@atlaspack/config-webextension Patch
@atlaspack/cli Patch
@atlaspack/register Patch
@atlaspack/bundle-stats Patch
@atlaspack/reporter-bundle-stats Patch
@atlaspack/transformer-image Patch
@atlaspack/inspector-frontend Patch
@atlaspack/package-manager Patch
@atlaspack/profiler Patch
@atlaspack/workers Patch
@atlaspack/watcher-watchman-js Patch
@atlaspack/types-internal Patch
@atlaspack/optimizer-css Patch
@atlaspack/optimizer-cssnano Patch
@atlaspack/optimizer-swc Patch
@atlaspack/optimizer-terser Patch
@atlaspack/packager-css Patch
@atlaspack/transformer-babel Patch
@atlaspack/transformer-compiled-external Patch
@atlaspack/transformer-compiled Patch
@atlaspack/transformer-css Patch
@atlaspack/transformer-less Patch
@atlaspack/transformer-sass Patch
@atlaspack/transformer-typescript-tsc Patch
@atlaspack/transformer-typescript-types Patch
@atlaspack/optimizer-blob-url Patch
@atlaspack/optimizer-data-url Patch
@atlaspack/optimizer-svgo Patch
@atlaspack/packager-html Patch
@atlaspack/packager-raw-url Patch
@atlaspack/packager-svg Patch
@atlaspack/packager-webextension Patch
@atlaspack/packager-xml Patch
@atlaspack/reporter-build-metrics Patch
@atlaspack/reporter-bundle-analyzer Patch
@atlaspack/reporter-cli Patch
@atlaspack/reporter-dev-server Patch
@atlaspack/reporter-json Patch
@atlaspack/reporter-lsp Patch
@atlaspack/reporter-sourcemap-visualiser Patch
@atlaspack/reporter-tracer Patch
@atlaspack/resolver-glob Patch
@atlaspack/runtime-browser-hmr Patch
@atlaspack/runtime-js Patch
@atlaspack/runtime-react-refresh Patch
@atlaspack/runtime-service-worker Patch
@atlaspack/runtime-webextension Patch
@atlaspack/transformer-posthtml Patch
@atlaspack/transformer-react-refresh-wrap Patch
@atlaspack/transformer-webextension Patch
@atlaspack/transformer-webmanifest Patch
@atlaspack/validator-eslint Patch
@atlaspack/validator-typescript Patch
@atlaspack/resolver-default Patch
@atlaspack/resolver-tesseract Patch
@atlaspack/types Patch
@atlaspack/codeframe Patch
@atlaspack/graph Patch
@atlaspack/plugin Patch
@atlaspack/reporter-bundle-buddy Patch
@atlaspack/transformer-xml Patch
@atlaspack/ts-utils Patch
@atlaspack/packager-ts Patch
@atlaspack/transformer-jsonld Patch
@atlaspack/bundler-library Patch
@atlaspack/compressor-brotli Patch
@atlaspack/compressor-gzip Patch
@atlaspack/compressor-raw Patch
@atlaspack/namer-default Patch
@atlaspack/optimizer-htmlnano Patch
@atlaspack/packager-raw Patch
@atlaspack/packager-wasm Patch
@atlaspack/reporter-compiled-css-in-js-migration-map Patch
@atlaspack/reporter-conditional-manifest Patch
@atlaspack/transformer-glsl Patch
@atlaspack/transformer-graphql Patch
@atlaspack/transformer-inline-string Patch
@atlaspack/transformer-inline Patch
@atlaspack/transformer-json Patch
@atlaspack/transformer-mdx Patch
@atlaspack/transformer-pug Patch
@atlaspack/transformer-raw Patch
@atlaspack/transformer-svg-react Patch
@atlaspack/transformer-toml Patch
@atlaspack/transformer-worklet Patch
@atlaspack/transformer-yaml Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@matt-koko matt-koko marked this pull request as ready for review April 7, 2026 18:59
@matt-koko matt-koko requested a review from a team as a code owner April 7, 2026 18:59
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 7, 2026

📊 Type Coverage Report

Coverage Comparison

Metric Baseline Current Change
Coverage Percentage 92.28% 92.28% ➡️ 0.00%
Correctly Typed 223,737 223,737 +0
Total Expressions 242,432 242,432 +0
Untyped Expressions 18,695 18,695 +0

Files with Most Type Issues (Top 15)

File Issues Affected Lines
packages/core/integration-tests/test/javascript.ts 1152 745
packages/core/integration-tests/test/cache.ts 884 625
packages/core/integration-tests/test/scope-hoisting.ts 624 491
packages/utils/node-resolver-core/test/resolver.ts 476 177
packages/core/integration-tests/test/html.ts 468 294
packages/core/integration-tests/test/sourcemaps.ts 364 182
packages/core/test-utils/src/utils.ts 330 205
packages/core/integration-tests/test/incremental-bundling.ts 298 206
packages/core/core/src/dumpGraphToGraphViz.ts 251 108
packages/core/integration-tests/test/transpilation.ts 239 143
packages/core/integration-tests/test/output-formats.ts 227 161
packages/transformers/webextension/src/WebExtensionTransformer.ts 210 80
packages/core/core/src/requests/AssetGraphRequestRust.ts 197 84
packages/core/core/src/requests/BundleGraphRequestRust.ts 195 68
packages/core/integration-tests/test/css-modules.ts 191 107

This report was generated by the Type Coverage GitHub Action

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 7, 2026

📊 Benchmark Results

No significant performance changes detected.

📊 Benchmark Results

Overall Performance

Test Duration JS Memory Peak Native Memory Peak vs Baseline Status
Three.js Real Repository (JS) 13.64s 1.82GB 2.12GB +2.13% duration, -10.17% JS memory 🟡 Neutral
Three.js Real Repository (V3) 12.34s 3.27GB 3.57GB +0.39% duration, +1.97% JS memory 🟡 Neutral

🔍 Detailed Phase Analysis

Three.js Real Repository (JS)

Phase Duration (avg) Duration (p95) Memory Peak (avg) Memory Peak (p95)
resolving 6.93s 7.13s 1.21GB 1.56GB
transforming 6.93s 7.12s 1.21GB 1.56GB
bundling 6.72s 6.91s 1.22GB 1.56GB
bundled 6.30s 6.44s 1.32GB 1.67GB
packaging 4.46s 4.60s 1.43GB 1.78GB
optimizing 4.34s 4.50s 1.82GB 2.09GB

Three.js Real Repository (V3)

Phase Duration (avg) Duration (p95) Memory Peak (avg) Memory Peak (p95)
building 8.18s 8.52s 2.60GB 2.89GB
bundling 7.60s 7.99s 2.61GB 2.90GB
bundled 7.21s 7.64s 2.77GB 3.07GB
packaging 4.72s 4.87s 2.92GB 3.30GB
optimizing 4.61s 4.77s 3.27GB 3.55GB

💾 Unified Memory Analysis

Three.js Real Repository (JS) Memory Statistics

Memory Type Metric Min Mean Median P95 P99 Max Std Dev
JavaScript RSS 1.06GB 1.61GB 1.66GB 2.09GB 2.09GB 2.09GB 300.37MB
Heap Used 81.33MB 88.58MB 88.92MB 100.70MB 100.70MB 100.70MB 6.48MB
Heap Total 99.35MB 154.14MB 155.60MB 211.61MB 211.61MB 211.61MB 37.08MB
External 38.88MB 105.96MB 173.02MB 173.02MB 173.02MB 173.02MB 67.06MB
Native (Rust) Physical Memory 1.48GB 1.67GB 1.68GB 1.92GB 2.05GB 2.12GB 142.55MB
Virtual Memory 29.83GB 30.52GB 30.53GB 30.74GB 30.86GB 30.99GB 171.25MB

Sample Counts: JS: 14, Native: 227

Three.js Real Repository (V3) Memory Statistics

Memory Type Metric Min Mean Median P95 P99 Max Std Dev
JavaScript RSS 2.41GB 3.02GB 3.11GB 3.55GB 3.55GB 3.55GB 352.36MB
Heap Used 77.91MB 82.31MB 78.51MB 103.74MB 103.74MB 103.74MB 7.60MB
Heap Total 88.45MB 108.05MB 97.20MB 138.84MB 138.84MB 138.84MB 17.32MB
External 74.02MB 158.71MB 179.71MB 185.49MB 185.49MB 185.49MB 44.30MB
Native (Rust) Physical Memory 2.79GB 3.14GB 3.20GB 3.43GB 3.51GB 3.57GB 221.10MB
Virtual Memory 30.77GB 33.57GB 33.74GB 33.94GB 34.02GB 34.08GB 603.70MB

Sample Counts: JS: 14, Native: 211

🖥️ Environment

  • Node.js: v22.17.0
  • Platform: linux (x64)
  • CPU: Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz
  • Total Memory: 15.61GB
  • Git SHA: b6422c6
  • Branch: koko/log-tracing-dir
  • Timestamp: 2026-04-07T19:24:31.880Z

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.

2 participants