Giter VIP home page Giter VIP logo

Comments (8)

paullewis avatar paullewis commented on July 19, 2024

There's generally a problem with Python's JSON parsing when it comes to some of the trace files :-/ I'm still trying to figure it out, but if you'd be willing to post the file somewhere I'll gladly take a look and see if I can figure out what's going on. Did you take the file from WebPagetest or Timeline?

from big-rig.

wardpeet avatar wardpeet commented on July 19, 2024

Here you go http://www.webpagetest.org/result/151215_9S_1aa13ab94c8e695ee2b30666781d362c/

Same error with timeline from chrome so it probably depends on the file size.

from big-rig.

axemclion avatar axemclion commented on July 19, 2024

I had similar problem when I was working with browser-perf. The tracing files can get really big and the way I solved this was by reading the files in streams. This is just an array of records, and parsing the file as a stream let me parse.

node-big-rig could also benefit from reading the stream instead of reading the entire big file

from big-rig.

datrinh avatar datrinh commented on July 19, 2024

I have the same problem. It says JSON parse error
My file is 25 MB tho :/ Link to json file: https://www.dropbox.com/s/ui5udnmv96jqjb7/timeline_single.json?dl=0

from big-rig.

axemclion avatar axemclion commented on July 19, 2024

@datrinh Did you try using http://github.com/axemclion/browser-perf/ ?

from big-rig.

datrinh avatar datrinh commented on July 19, 2024

@axemclion No, I haven't. I didn't plan on setting up multiple tools if possible tho :)

from big-rig.

datrinh avatar datrinh commented on July 19, 2024

I'm still having the error even on smaller files (5 MB)...
Is there any alternative app that I can use until this is fixed?

from big-rig.

zzarcon avatar zzarcon commented on July 19, 2024

Same issue for me, file size <7mb. I also tried disabling/enabling Timeline options like Js profile, Memory, Paint, Screeshots, etc. And still doesn't work.

from big-rig.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.