Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
devtools-timeline-parser
Advanced tools
Extract meaning metrics from raw timeline data generated in Chrome Devtools
Used to extract meaning metrics from raw timeline data generated in Chrome Devtools.
npm install devtools-timeline-parser
const Parser = require('devtools-timeline-parser');
const data = require('/path/to/raw/timeline/json/file');
const parser = new Parser(data);
// get CPU metrics
parser.cpu();
// outputs:
// {
// "idle": [
// {
// "timeOffset": 0, // in millisecond
// "load": 0
// }
// ],
// "loading": [...],
// "painting": [...],
// "rendering": [...],
// "scripting": [...],
// "other": [
// {
// "timeOffset": 0,
// "load": 0
// },
// {
// "timeOffset": 12.713740000009537,
// "load": 0.014905127416952567
// },
// ...
// ]
// }
// get memory metrics
parser.memory();
// outputs:
// [
// {
// "startTime": 749744928.729,
// "startTimeOffest": 560.636999964714,
// "documents": 19,
// "jsEventListeners": 505,
// "jsHeapSizeUsed": 23592960,
// "nodes": 6453
// },
// ...
// ]
// get FPS metrics
parser.frames();
// outputs:
// [
// {
// "startTime": 749744391.189,
// "startTimeOffset": 23.05400002002716,
// "endTime": 749744791.936,
// "duration": 400.74699997901917,
// "timeByCategory": {
// "other": 2.9880001544952393,
// "rendering": 0.4479999542236328,
// "painting": 0.36000001430511475
// },
// "cpuTime": 3.796000123023987,
// "idle": false,
// "layerTree": null,
// "_paints": [],
// "_mainFrameId": 304
// },
// ...
// ]
# Run demo script
$ node examples/demo.js
# Then check generated CPU.json, Memory.json and Frames.json files
This project heavily borrows ideas from a depreacted project devtools-timeline-model.
But due to the uncompiled TypeScript files in latest chrome-devtools-frontend package, this repo still uses a legacy version 1.0.698043 of it.
MIT
FAQs
Extract meaning metrics from raw timeline data generated in Chrome Devtools
We found that devtools-timeline-parser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.