Code Monkey home page Code Monkey logo

timeline-viewer's Introduction

DevTools Timeline Viewer

Shareable URLs for your Chrome DevTools performance traces.

Works with GitHub gists, public GitHub URLs, some dropbox public URLs, public files on Google Drive, and (after authentication) private files on Google Drive.

You can also drag and drop a Profile-*.json file onto the webapp.

The app works offline as it has a service worker, as well. :)


Google Drive integration

Once authorized, you'll see Timeline Viewer as a registered Google Drive viewer when opening .json files. Once you select the Timeline Viewer, it will open in a new tab and load the timeline asset from your Drive.

You can share this URL with any users who have both:

  1. authorized Timeline Viewer to Drive via the typical Google OAuth flow and..
  2. have Edit permission to the Google Drive file

To revoke authorization, visit your Google security permissions.


Dev

Run:

  • yarn or npm i
  • yarn run dev or npm run dev - it will open site in browser and run server for you.

Master branch's docs folder is what's published to gh-pages, to simplify deployment.

Auth keys have localhost:8833 whitelisted, so you can hack there.

Updating DevTools Version

  • Remote debug Chrome on Android (Dev channel or Canary).
  • (Verify it works as expected)
  • Open devtools on devtools
  • Look at location.href and grab the hash out of it
    • copy(new URL(location.href).pathname.match(/@(\w+)/)[1])
  • Pop that into the hash in docs/index.html

DevTools / Chrome version compatibility

  • chrome 79/80/+ (a9b97dff480d5c50843b5190c4d02373a0fc6d84) breaks in our setup. appears to be a decent amount of work to fix.
  • chrome 78 (675968a8c657a3bd9c1c2c20c5d2935577bbc5e6 was base commit) is fine
  • chrome 70 (81bf34f6bd3784247d7787d879821061c1b7484b) was fine until the removal of custom elements shipped and broke clientside in chrome 80

I sometimes use the archive of https://chromereleases.googleblog.com/ to find a target chrome version.

Testing

Cypress is used for integration testing. To run test just invoke yarn test


Known alternatives

timeline-viewer's People

Contributors

paulirish avatar denar90 avatar dependabot[bot] avatar christian-bromann avatar diego-fernandez-santos avatar

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.