From 669a7257dad9318e245a846dafff69d460822b5d Mon Sep 17 00:00:00 2001 From: TCMalloc Team Date: Tue, 11 Aug 2026 23:29:50 -0700 Subject: [PATCH] Enable heapz compressibility collection by default PiperOrigin-RevId: 963236686 --- tcmalloc/internal/profile_builder_test.cc | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/tcmalloc/internal/profile_builder_test.cc b/tcmalloc/internal/profile_builder_test.cc index fcc35c8bd..acd8c012c 100644 --- a/tcmalloc/internal/profile_builder_test.cc +++ b/tcmalloc/internal/profile_builder_test.cc @@ -574,18 +574,16 @@ TEST(ProfileConverterTest, HeapProfile) { // Require that the default_sample_type appeared in sample_type. EXPECT_THAT(sample_types, testing::Contains(converted.default_sample_type())); - constexpr int kNumSampleTypes = 7 - ; + constexpr int kNumSamples = 6; // This is slightly redundant with the next line, but we need to loop over // each of the samples later. - constexpr int kNumSamples = 6; - EXPECT_THAT(extracted_sample_type, SizeIs(kNumSampleTypes)); - EXPECT_THAT(extracted_sample_type, - UnorderedElementsAre( - Pair("objects", "count"), Pair("space", "bytes"), - Pair("resident_space", "bytes"), Pair("stale_space", "bytes"), - Pair("locked_space", "bytes"), Pair("swapped_space", "bytes"), - Pair("zero_space", "bytes"))); + EXPECT_THAT(extracted_sample_type, SizeIs(kNumSamples)); + EXPECT_THAT( + extracted_sample_type, + UnorderedElementsAre( + Pair("objects", "count"), Pair("space", "bytes"), + Pair("resident_space", "bytes"), Pair("stale_space", "bytes"), + Pair("locked_space", "bytes"), Pair("swapped_space", "bytes"))); SampleLabels extracted_labels; {