Skip to content

Commit

Permalink
Uncomment assert and remove todo (flutter#8535)
Browse files Browse the repository at this point in the history
  • Loading branch information
kenzieschmoll authored Nov 20, 2024
1 parent 95e2baa commit 77612d2
Showing 1 changed file with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 77612d2

Please sign in to comment.