Skip to content

Always run the name generators passed to TraceMe on debug builds to help catch bugs#3480

Merged
copybara-service[bot] merged 1 commit intomainfrom
test_863718821
Feb 3, 2026
Merged

Always run the name generators passed to TraceMe on debug builds to help catch bugs#3480
copybara-service[bot] merged 1 commit intomainfrom
test_863718821

Conversation

@copybara-service
Copy link

Always run the name generators passed to TraceMe on debug builds to help catch bugs

Today, the name generators are run only when there is an active tracing session, which means that none of the code inside the name generators are tested at all. Since users sometimes perform non-trivial work (such as accessing pointers that may be dangling) inside the name generators, it is useful to test such code by always invoking the name generators in debug builds where the extra overhead is not a concern.

@copybara-service copybara-service bot force-pushed the test_863718821 branch 4 times, most recently from dd98595 to 5786685 Compare February 3, 2026 04:49
…elp catch bugs

Today, the name generators are run only when there is an active tracing session, which means that none of the code inside the name generators are tested at all. Since users sometimes perform non-trivial work (such as accessing pointers that may be dangling) inside the name generators, it is useful to test such code by always invoking the name generators in debug builds where the extra overhead is not a concern.

PiperOrigin-RevId: 864742934
@copybara-service copybara-service bot merged commit 88f1a04 into main Feb 3, 2026
@copybara-service copybara-service bot deleted the test_863718821 branch February 3, 2026 09:01
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