Skip to content

Use streaming JSON parser for profile fetch#5843

Open
pepyakin wants to merge 2 commits intofirefox-devtools:mainfrom
pepyakin:pep/streaming-json-parser
Open

Use streaming JSON parser for profile fetch#5843
pepyakin wants to merge 2 commits intofirefox-devtools:mainfrom
pepyakin:pep/streaming-json-parser

Conversation

@pepyakin
Copy link

When using samply with large profiles you can sometimes get very large profiles. If an uncompressed profile gets large enough it will get silently truncated and the profile cannot be displayed (see the screenshot attached). As was noted by @mhansen, it's probably the String limit as described here.

In any case, this PR attempts to fix this issue by using a streaming JSON parser instead of trying to swallow the trace awhole.

image

@pepyakin pepyakin requested a review from canova as a code owner February 16, 2026 12:55
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.

1 participant