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

[Proposal] Add buffer size estimate to debug buffer content graph #1558

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

peaBerberian
Copy link
Collaborator

While continuing proof-of-concepts related to how much buffer we build, I found that our estimate of the current buffer size in bytes (more exactly the combined size of pushed segments that still have at least a sub-part present in the buffer) was a potentially-interesting metric that we did not expose anywhere: neither in logs nor in our DEBUG_ELEMENT feature.

This commit adds it to the DEBUG_ELEMENT feature, just after the corresponding buffer content graph.

bufferSize
Screenshot: I'm here talking about the 157.711MB for video appearing at the end of vbuf and 1811KB at the end of abuf

It may be even more useful in logs, but I did not bother to do it for now as I currently mainly relied on the debug element.

While continuing proof-of-concepts related to how much buffer we build,
I found that our estimate of the current buffer size in bytes (more
exactly the combined size of pushed segments that still have at least a
sub-part present in the buffer) was a potentially-interesting metric
that we did not expose anywhere: neither in logs nor in our
DEBUG_ELEMENT feature.

This commit adds it to the `DEBUG_ELEMENT` feature, just after the
corresponding buffer content graph.

It may be even more useful in logs, but I did not bother to do it for
now as I currently mainly relied on the debug element.
@peaBerberian peaBerberian added the proposal This Pull Request or Issue is only a proposal for a change with the expectation of a debate on it label Sep 27, 2024
@peaBerberian peaBerberian added this to the 4.3.0 milestone Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal This Pull Request or Issue is only a proposal for a change with the expectation of a debate on it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant