From 77612d261afc2945ff51b074eb2254ec439ca064 Mon Sep 17 00:00:00 2001 From: Kenzie Davisson <43759233+kenzieschmoll@users.noreply.github.com> Date: Wed, 20 Nov 2024 12:43:44 -0800 Subject: [PATCH] Uncomment assert and remove todo (#8535) --- .../profiler/cpu_profile_transformer.dart | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/packages/devtools_app/lib/src/screens/profiler/cpu_profile_transformer.dart b/packages/devtools_app/lib/src/screens/profiler/cpu_profile_transformer.dart index 9e4fe2be028..826b3290216 100644 --- a/packages/devtools_app/lib/src/screens/profiler/cpu_profile_transformer.dart +++ b/packages/devtools_app/lib/src/screens/profiler/cpu_profile_transformer.dart @@ -80,15 +80,13 @@ class CpuProfileTransformer { _setExclusiveSampleCountsAndTags(cpuProfileData); cpuProfileData.processed = true; - // TODO(kenz): investigate why this assert is firing again. - // https://github.com/flutter/devtools/issues/1529. -// assert( -// cpuProfileData.profileMetaData.sampleCount == -// cpuProfileData.cpuProfileRoot.inclusiveSampleCount, -// 'SampleCount from response (${cpuProfileData.profileMetaData.sampleCount})' -// ' != sample count from root ' -// '(${cpuProfileData.cpuProfileRoot.inclusiveSampleCount})', -// ); + assert( + cpuProfileData.profileMetaData.sampleCount == + cpuProfileData.cpuProfileRoot.inclusiveSampleCount, + 'SampleCount from response (${cpuProfileData.profileMetaData.sampleCount})' + ' != sample count from root ' + '(${cpuProfileData.cpuProfileRoot.inclusiveSampleCount})', + ); // Reset the transformer after processing. reset();