Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trace memory allocations and show in tracing #6866

Merged
merged 2 commits into from
Jan 10, 2024
Merged

Conversation

sokra
Copy link
Member

@sokra sokra commented Jan 2, 2024

Description

  • collect memory allocation data and report it when tracing is enable
  • Add value mode to trace server to show memory info

Closes PACK-2184

Copy link

vercel bot commented Jan 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
examples-designsystem-docs 🔄 Building (Inspect) Visit Preview 💬 Add feedback Jan 2, 2024 5:33pm
examples-tailwind-web 🔄 Building (Inspect) Visit Preview 💬 Add feedback Jan 2, 2024 5:33pm
examples-vite-web 🔄 Building (Inspect) Visit Preview 💬 Add feedback Jan 2, 2024 5:33pm
rust-docs ❌ Failed (Inspect) Jan 2, 2024 5:33pm
7 Ignored Deployments
Name Status Preview Comments Updated (UTC)
examples-basic-web ⬜️ Ignored (Inspect) Visit Preview Jan 2, 2024 5:33pm
examples-gatsby-web ⬜️ Ignored (Inspect) Jan 2, 2024 5:33pm
examples-kitchensink-blog ⬜️ Ignored (Inspect) Visit Preview Jan 2, 2024 5:33pm
examples-native-web ⬜️ Ignored (Inspect) Visit Preview Jan 2, 2024 5:33pm
examples-nonmonorepo ⬜️ Ignored (Inspect) Visit Preview Jan 2, 2024 5:33pm
examples-svelte-web ⬜️ Ignored (Inspect) Jan 2, 2024 5:33pm
turbo-site ⬜️ Ignored (Inspect) Visit Preview Jan 2, 2024 5:33pm

@sokra sokra requested a review from kwonoj January 2, 2024 17:15
Copy link
Contributor

github-actions bot commented Jan 2, 2024

🟢 Turbopack Benchmark CI successful 🟢

Thanks

Copy link
Contributor

github-actions bot commented Jan 2, 2024

✅ This change can build next-swc

Copy link
Contributor

github-actions bot commented Jan 2, 2024

🟢 CI successful 🟢

Thanks

@@ -13,16 +13,37 @@ const TARGET_BUFFER: usize = 100 * KB;
/// global counter.
const MAX_BUFFER: usize = 200 * KB;

#[derive(Default)]
pub struct AllocationInfo {
pub allocations: usize,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is usize enough to not overflow?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, 16 exabytes should be enough

@sokra sokra merged commit 5d2b0fe into main Jan 10, 2024
51 of 52 checks passed
@sokra sokra deleted the sokra/memory-tracing branch January 10, 2024 20:31
chris-olszewski added a commit that referenced this pull request Jan 11, 2024
### Description

Update `Cargo.lock` to match changes made to `Cargo.toml` in  #6866

### Testing Instructions

👀 


Closes TURBO-2032
sokra added a commit to vercel/next.js that referenced this pull request Jan 17, 2024
### What?

api changes for vercel/turborepo#6988

### Turbopack Changes

* vercel/turborepo#6886 <!-- Tobias Koppers -
improve nesting of tracing for invalidations -->
* vercel/turborepo#6866 <!-- Tobias Koppers - trace
memory allocations and show in tracing -->
* vercel/turborepo#6988 <!-- Tobias Koppers - allow
to pass available chunk items when creating a chunk group -->
* vercel/turborepo#7013 <!-- Leah - fix: make CSS
reloading work on firefox -->
* vercel/turborepo#7004 <!-- Tobias Koppers -
improve error message when no config is exported from postcss.config.js
-->




Closes PACK-2231
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Jul 25, 2024
### Description

* collect memory allocation data and report it when tracing is enable
* Add value mode to trace server to show memory info


Closes PACK-2184
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Jul 29, 2024
### Description

* collect memory allocation data and report it when tracing is enable
* Add value mode to trace server to show memory info


Closes PACK-2184
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Jul 29, 2024
### Description

* collect memory allocation data and report it when tracing is enable
* Add value mode to trace server to show memory info


Closes PACK-2184
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Aug 1, 2024
### Description

* collect memory allocation data and report it when tracing is enable
* Add value mode to trace server to show memory info


Closes PACK-2184
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants