Skip to content

Add a flag to make the size class generator output bytes used per class. - #977

Draft
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_981758751
Draft

copybara-service[bot] wants to merge 1 commit into
masterfrom
test_981758751

Conversation

@copybara-service

Copy link
Copy Markdown

Add a flag to make the size class generator output bytes used per class.

This is in preparation for computing and reporting external fragmentation;
it is good to have the usage numbers as reference to see that the
relative calculations actually make sense. To this end, we simplify the
dynamic programming a bit, where instead of sending all the fields of
the OptimalStruct around, we just send the struct itself. (This makes it
easier and cleaner to add more reporting fields to it in the future.)
We also need to make the Bytes field non-cumulative, but this is simple.

This is in preparation for computing and reporting external fragmentation;
it is good to have the usage numbers as reference to see that the
relative calculations actually make sense. To this end, we simplify the
dynamic programming a bit, where instead of sending all the fields of
the OptimalStruct around, we just send the struct itself. (This makes it
easier and cleaner to add more reporting fields to it in the future.)
We also need to make the Bytes field non-cumulative, but this is simple.

PiperOrigin-RevId: 981758751
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