Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
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
The npm package devtools-timeline-parser receives a total of 4,904 weekly downloads. As such, devtools-timeline-parser popularity was classified as popular.
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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.