Skip to content

Add adaptive trace buffer growth option#672

Open
akx wants to merge 1 commit into
gaogaotiantian:masterfrom
akx:growing
Open

Add adaptive trace buffer growth option#672
akx wants to merge 1 commit into
gaogaotiantian:masterfrom
akx:growing

Conversation

@akx

@akx akx commented Mar 25, 2026

Copy link
Copy Markdown
Contributor

This PR proposes --grow_on_overflow (with an optional --max_tracer_entries flag) to allow viztracer to grow the circular buffer as needed instead of dropping early events.

Warning

It's possible to utterly hose your machine's memory if you don't set --max_tracer_entries though. 😄

@codecov

codecov Bot commented Mar 25, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 84.37500% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 99.76%. Comparing base (db53893) to head (f9e7d0b).

Files with missing lines Patch % Lines
src/viztracer/viztracer.py 85.18% 4 Missing ⚠️
src/viztracer/main.py 75.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##            master     #672      +/-   ##
===========================================
- Coverage   100.00%   99.76%   -0.24%     
===========================================
  Files           20       20              
  Lines         2473     2503      +30     
===========================================
+ Hits          2473     2497      +24     
- Misses           0        6       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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