Skip to content

perfetto: heap_profile: fix traceconv profile path parsing#5046

Merged
LalitMaganti merged 1 commit intomainfrom
dev/lalitm/heap-profile-2
Mar 12, 2026
Merged

perfetto: heap_profile: fix traceconv profile path parsing#5046
LalitMaganti merged 1 commit intomainfrom
dev/lalitm/heap-profile-2

Conversation

@LalitMaganti
Copy link
Copy Markdown
Member

traceconv writes its output (including the "Wrote profiles to "
line) to stderr, not stdout. subprocess.check_output() only captures
stdout by default, so the profile path was never found and the script
always reported "No profiles generated" even when profiles existed.

Fix by passing stderr=subprocess.STDOUT so both streams are captured.

@LalitMaganti LalitMaganti requested a review from a team as a code owner March 6, 2026 20:18
@LalitMaganti LalitMaganti requested a review from rsavitski March 6, 2026 20:19
@LalitMaganti LalitMaganti force-pushed the dev/lalitm/heap-profile-2 branch from a572938 to 3d473ee Compare March 6, 2026 20:25
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 6, 2026

@LalitMaganti LalitMaganti force-pushed the dev/lalitm/heap-profile-1 branch from 38fe36c to 70e19bc Compare March 6, 2026 20:37
@LalitMaganti LalitMaganti force-pushed the dev/lalitm/heap-profile-2 branch from 3d473ee to eb63448 Compare March 6, 2026 20:38
@LalitMaganti LalitMaganti force-pushed the dev/lalitm/heap-profile-1 branch from 70e19bc to 76b8758 Compare March 6, 2026 21:04
@LalitMaganti LalitMaganti force-pushed the dev/lalitm/heap-profile-2 branch from eb63448 to b062d18 Compare March 6, 2026 21:04
Base automatically changed from dev/lalitm/heap-profile-1 to main March 12, 2026 09:39
Copy link
Copy Markdown
Member

@rsavitski rsavitski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs resyncing, but the commit in question([1]) lgtm.

[1] b062d18

traceconv writes its output (including the "Wrote profiles to <path>"
line) to stderr, not stdout. subprocess.check_output() only captures
stdout by default, so the profile path was never found and the script
always reported "No profiles generated" even when profiles existed.

Fix by passing stderr=subprocess.STDOUT so both streams are captured.
@LalitMaganti LalitMaganti force-pushed the dev/lalitm/heap-profile-2 branch from b062d18 to 70427c7 Compare March 12, 2026 14:46
@LalitMaganti LalitMaganti merged commit 8517497 into main Mar 12, 2026
8 checks passed
@LalitMaganti LalitMaganti deleted the dev/lalitm/heap-profile-2 branch March 12, 2026 14:47
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.

2 participants