Skip to content

Remove the num_same_spans_ span-return histogram from CentralFreeList. - #720

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

Remove the num_same_spans_ span-return histogram from CentralFreeList.#720
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_979988245

Conversation

@copybara-service

Copy link
Copy Markdown

Remove the num_same_spans_ span-return histogram from CentralFreeList.

This telemetry was added under TODO(b/527641380) to characterize how many
objects in a returned batch land on the same span, guiding CentralFreeList
optimization work. It cost a per-size-class StatsCounter array plus per-batch
bookkeeping in the InsertRange hot path (a run counter and a LossyAdd), and
exposed the counts through text and pbtxt stats printers.

The optimization investigation this instrumentation supported is complete, so
delete the histogram, its supporting constant, the InsertRange accounting, the
PrintSameSpanStats/PrintSameSpanStatsInPbtxt printers, their callers in
global_stats, and the associated tests.

This telemetry was added under TODO(b/527641380) to characterize how many
objects in a returned batch land on the same span, guiding CentralFreeList
optimization work. It cost a per-size-class StatsCounter array plus per-batch
bookkeeping in the InsertRange hot path (a run counter and a LossyAdd), and
exposed the counts through text and pbtxt stats printers.

The optimization investigation this instrumentation supported is complete, so
delete the histogram, its supporting constant, the InsertRange accounting, the
PrintSameSpanStats/PrintSameSpanStatsInPbtxt printers, their callers in
global_stats, and the associated tests.

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