Coder Social home page Coder Social logo

node-tick-processor's Introduction

node-tick-processor

easy-to-install processor for the v8 profiler log

This is little more than a repackaging of the "tick processor" that ships with the v8 source code.

Installation

$ npm install -g node-tick-processor

Usage

  • Run your script with profiling enabled, to generate the v8.log file
    • $ node --prof myscript.js
  • In the same directory, run this script
    • $ node-tick-processor

For help, add the --help flag.

Contributing

  • checkout your own copy of the source (or make a fork first)
  • edit header.js as desired
  • run ./rebuild.sh
  • submit changes in a github issue (or pull request)

License

The parts of this project that are checked into the node-tick-processor git repository are released into the Public Domain by Drew Folta.

The parts of this project that come from the v8 git repository are licensed according to the licensing agreement found in that repository.

node-tick-processor's People

Contributors

drewfish avatar mrjoelkemp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

node-tick-processor's Issues

works with different versions of node

The current build system creates a node-tick-processor for the latest version of v8. However that might not be the version (built into node) that generated the log file.

OSX: nm usage error

Getting this error a lot when running on OSX 10.9.5:

Usage: /Applications/Xcode6-Beta5.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm [-agnopruUmxjlfAP[s segname sectname] [-] [-t format] [[-arch <arch_flag>] ...] [file ...]

The program still ends up working though.

Expecting v8.log filename?

I've tried running this with logs generated by node 4.2, which are named eg. isolate-0000000000123A30-v8.log. However, this package seems to expect v8.log. Perhaps there's a way to specify a different filename, but the --help switch is not working for me.

v0.0.1 does not contain any scripts

$ npm install node-tick-processor
npm http GET https://registry.npmjs.org/node-tick-processor
npm http 304 https://registry.npmjs.org/node-tick-processor
npm ERR! Error: ENOENT, chmod '/home/bnoordhuis/src/node_modules/node-tick-processor/bin/node-tick-processor'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 3.13.10-200.fc20.x86_64
npm ERR! command "/home/bnoordhuis/opt/node/bin/node" "/home/bnoordhuis/bin/npm" "install" "node-tick-processor"
npm ERR! cwd /home/bnoordhuis/src
npm ERR! node -v v0.10.27-pre
npm ERR! npm -v 1.4.7
npm ERR! path /home/bnoordhuis/src/node_modules/node-tick-processor/bin/node-tick-processor
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/bnoordhuis/src/npm-debug.log
npm ERR! not ok code 0

$ ls -l $HOME/.npm/node-tick-processor/0.0.1/package/
total 12
-rw-r--r--. 1 bnoordhuis bnoordhuis 1527 Feb  3 18:27 LICENSE.v8
-rw-r--r--. 1 bnoordhuis bnoordhuis 1030 Feb  3 18:27 README.md
-rw-r--r--. 1 bnoordhuis bnoordhuis 1941 Jun 19 00:37 package.json

I suspect something went wrong when publishing it?

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.