Skip to content

Revive same-span telemetry in CentralFreeList#311

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

Revive same-span telemetry in CentralFreeList#311
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_941771463

Conversation

@copybara-service

Copy link
Copy Markdown

Revive same-span telemetry in CentralFreeList

This CL revives the telemetry reverted in cl/809203378, but optimizes
it to only look for consecutive runs of the same span in the batch
rather than fully sorting the pointers. This avoids the sorting cost
while still providing a useful estimate for a potentially common-but-cheap to
fix pattern.

The logic is placed in a helper lambda in CentralFreeList::InsertRange
to facilitate profiling and cost tracking.

This CL revives the telemetry reverted in cl/809203378, but optimizes
it to only look for consecutive runs of the same span in the batch
rather than fully sorting the pointers. This avoids the sorting cost
while still providing a useful estimate for a potentially common-but-cheap to
fix pattern.

The logic is placed in a helper lambda in CentralFreeList::InsertRange
to facilitate profiling and cost tracking.

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