Skip to content

Fix flakiness in ProfileTest.EventTraceTruncation. - #586

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

Fix flakiness in ProfileTest.EventTraceTruncation.#586
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_972970666

Conversation

@copybara-service

Copy link
Copy Markdown

Fix flakiness in ProfileTest.EventTraceTruncation.

In EventTraceTruncation, allocations were performed after an initial
SleepFor(20ms), allowing background allocations during the sleep to
consume the small trace memory buffer (kEventTraceMemoryLimit = 2048,
capacity for only 1 pair) before the early allocation was recorded,
causing intermittent truncation of the expected early event.

In EventTraceTruncation, allocations were performed after an initial
SleepFor(20ms), allowing background allocations during the sleep to
consume the small trace memory buffer (kEventTraceMemoryLimit = 2048,
capacity for only 1 pair) before the early allocation was recorded,
causing intermittent truncation of the expected early event.

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