jlfwong / speedscope

🔬 A fast, interactive web-based viewer for performance profiles.
https://www.speedscope.app
MIT License
5.58k stars 247 forks source link

unable to load the json file and getting error for files size above 172 KB #471

Open vickymore2003 opened 8 months ago

vickymore2003 commented 8 months ago

I have a file with 172 KB(this is the smallest file as of now i tested with 123Kb its working fine).

While uploading i m getting below error in console.

😿 Something went wrong. Check the JS console for more details.

Failed to load format Error: Samples must be provided in increasing order of cumulative value. Last sample was 87005, this sample was 87004 at h._enterFrame (speedscope.80eb88d2.js:165:7141) at h.enterFrame (speedscope.80eb88d2.js:165:7512) at speedscope.80eb88d2.js:171:1675 at a (speedscope.80eb88d2.js:171:1800) at speedscope.80eb88d2.js:171:2361 at Array.map () at s (speedscope.80eb88d2.js:171:2354) at import.7f8cb9f9.js:121:3665 at Generator.next () at s (import.7f8cb9f9.js:121:780)

jlfwong commented 8 months ago

Hi @vickymore2003! Can you provide more information about where these profiles are coming from? e.g. what language are you profiling, what profiler are you using, etc?

Speedscope certainly supports files larger than this (folks have successfully imported profiles larger than 1GB), and the error described in the stack trace you provided is about the content of the file, not the size of the file.