Coder Social home page Coder Social logo

and-oli / corgi-collage-react Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 793 KB

A basic React App that prototypes the ability to extend the Chrome DevTools performance panel using the User Timings API

Home Page: https://corgi-collage-react.vercel.app

HTML 12.53% CSS 12.45% JavaScript 75.03%

corgi-collage-react's Introduction

React Corgi Collage

This is a basic React app that prototypes the ability to extend the Chrome DevTools Performance Panel. The prototype is based on a proposal to use a predefined format to pass structured data to DevTools using the UserTimings API In this example, the format is used to adding custom tracks to the timeline that supports all the features of the native tracks (f.e. entries in a track can be clicked to reveal a detailed view).

Extension data

In this example, the code triggers arbitrary tasks that are run on rendering. This arbitrary tasks mimic tasks that are relevant to the framework but that aren't shown by default in the Performance Panel. The tasks are measured and registered to the browser using the UserTimings API using the proposed predefined format to pass structured data that includes the name and description the measurements will be displayed with in the Performance Panel timeline.

The tasks are run and measured in the main component in the mockChangeDetection function.

Try it

A deployed version of the application is available at https://corgi-collage-react.vercel.app/. You need to run a Chrome version that contains the changes to DevTools that proposed User Timing API format.

Note: to trigger the measured tasks you need to add a corgi to the collage using the "Add new Corgi" button.

Example

extension track

corgi-collage-react's People

Contributors

and-oli avatar

Watchers

 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.