cpuprofile
A simple representation of .cpuprofile files.
Installation
npm install --save cpuprofile
Usage
const Profile = Profile; // read and parse a .cpuprofile filelet content = ;let parsed = JSON; // create Profilelet profile = Profile; // generate formatted overview on self and total timeslet output = profile;
Features
Profile
andProfileNode
classes.- Generation of Bottom Up Profiling view of Chrome DevTools.
Credits
- Alexei Filippov: Thanks for pointing me in the right direction!
- Chromium: The calculation of self and total times is adapted from parts of the Chromium project.
License
Copyright © 2016 by Sebastian Ruhleder. Released under the MIT license.