Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mathew-kurian/chrome-timeline-statistics
Compute the statistics from a Chrome timeline
https://github.com/mathew-kurian/chrome-timeline-statistics
aggregate browser chrome devtools performance profile scripting statistics timeline
Last synced: 24 days ago
JSON representation
Compute the statistics from a Chrome timeline
- Host: GitHub
- URL: https://github.com/mathew-kurian/chrome-timeline-statistics
- Owner: mathew-kurian
- Created: 2017-08-22T19:13:44.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-10-20T17:00:53.000Z (about 4 years ago)
- Last Synced: 2024-11-08T13:38:07.779Z (about 1 month ago)
- Topics: aggregate, browser, chrome, devtools, performance, profile, scripting, statistics, timeline
- Language: JavaScript
- Homepage:
- Size: 324 KB
- Stars: 10
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- project-awesome - mathew-kurian/chrome-timeline-statistics - Compute the statistics from a Chrome timeline (JavaScript)
README
# Chrome Timeline Statistics
Compute the statistics from a Chrome timeline![](/screenshot.png)
## Install
```bash
npm install https://github.com/bluejamesbond/chrome-timeline-statistics
```## Example
```js
const trace = require('fs').readFileSync('./fixtures/trace.json', 'utf8');
const { getStatistics } = require('chrome-timeline-statistics');console.log(getStatistics(JSON.parse(trace)));
``````json
{ "other": 71.35399998165667,
"rendering": 72.80200000293553,
"painting": 263.37199999578297,
"scripting": 320.869000017643,
"loading": 55.05499999411404,
"idle": 5503.998000007123,
"busy": 783.4519999921322 }
```### Note
Aggregates are not exact at the moment although they are very close to those found in Chrome DevTools.---
_Code from Chrome Devtools FrontEnd and Lighthouse_