| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
TEST_F(EtwConsumerTest, StackWalkFiltering) {
// Stack thread ID is masked if it doesn't belong to Chrome.
ProcessStackWalkEvent(EncodeStackWalk(123456u, kOtherPid, kOtherTid, {}));
ASSERT_EQ(decoders().size(), 1u);
std::optional<perfetto::protos::pbzero::EtwTraceEvent::Decoder> event;
std::optional<perfetto::protos::pbzero::StackWalkEtwEvent::Decoder>
stack_walk;
ASSERT_NO_FATAL_FAILURE(
ValidateAndDecodeStackWalk(*decoders().back(), event, stack_walk));
EXPECT_FALSE(event->has_thread_id());
}Come to think of it, we should exclude the entire stack walk events if the thread id is not chrome (we wouldn't be able to symbolize anyways), so the impl should follow the same pattern as ShouldRecordFileIoEvents.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |