Git Product home page Git Product logo

cp2cg's Introduction

cp2cg - converts cpuprofile files to call graphs

Generates package/module-scoped call graph information based on .cpuprofile files generated from V8's CPU profiler.

Drag and drop .cpuprofile files onto the web app here, for live rendering: https://pmuellr.github.io/cp2cg

Here's a sample usage of the web app, dropping a .cpuprofile file downloaded from N|Solid:

using cp2cg with N|Solid

Generates SVG via viz.js.

Partitions the call graph by "packages" which contain "modules". Partitioning is determined by the location of the string node_modules in the script name, so probably won't work well in a browser, and is far from perfect for Node.js apps as well.

Colors of modules are based on the hitCount of functions in the module.

Intra-package calls between modules are not shown, nor are calls to Node.js built-in modules, to reduce clutter.

example usage

cp2cg blorg.cpuprofile

Generates a blorg.cpuprofile.svg file in the current directory.

install

npm install -g https://github.com/pmuellr/cp2cg

reference

license

This package is licensed under the MIT license. See the LICENSE.md file for more information.

contributing

Awesome! We're happy that you want to contribute.

Please read the CONTRIBUTING.md file for more information.

cp2cg's People

Stargazers

tngan avatar Vlad Filippov avatar C Dorn avatar

Watchers

Patrick Mueller avatar  avatar

Forkers

naderbhrr

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.