{"_id":"simple-profiler","_rev":"7-23011990b2e6d160ca8b0b89134ec695","name":"simple-profiler","description":"Access the V8 profiler from node.js ","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"simple-profiler","main":"build/default/profiler","version":"0.1.0","description":"Access the V8 profiler from node.js ","homepage":"http://github.com/X-Streamly/node-profiler","author":{"name":"Brian Willard","email":"bwillard@gmail.com"},"scripts":{"preinstall":"node-waf configure","install":"node-waf build install"},"repository":{"type":"git","url":"git://github.com/X-Streamly/node-profiler.git"},"_npmUser":{"name":"bwillard","email":"bwillard@gmail.com"},"_id":"simple-profiler@0.1.0","dependencies":{},"devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.104","_nodeVersion":"v0.6.2","_defaultsLoaded":true,"dist":{"shasum":"410df9879befe8f79b0d775439c83002b6966282","tarball":"https://registry.npmjs.org/simple-profiler/-/simple-profiler-0.1.0.tgz","integrity":"sha512-lXJPE7wtqFPzxRS1mkBNSd6lK6D2h7iiJeosGTlnkNxG2RTbohNT6/38Bf8Lb7hyOkox97GoB8wX3pz/Ki4J/Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDZIsX9ylUT9hDTJnm7I2+ljXxR5o6QLg01+XRrC9GcJAIhALofMwelEmFS4mRfXX2EQ8g0bWpTjLoOG7um/92USG1o"}]},"maintainers":[{"name":"bwillard","email":"bwillard@gmail.com"}]},"0.1.1":{"name":"simple-profiler","main":"build/default/profiler","version":"0.1.1","description":"Access the V8 profiler from node.js ","homepage":"http://github.com/X-Streamly/node-profiler","author":{"name":"Brian Willard","email":"bwillard@gmail.com"},"scripts":{"preinstall":"node-waf configure","install":"node-waf build install"},"repository":{"type":"git","url":"git://github.com/X-Streamly/node-profiler.git"},"_npmUser":{"name":"bwillard","email":"bwillard@gmail.com"},"_id":"simple-profiler@0.1.1","dependencies":{},"devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.104","_nodeVersion":"v0.6.2","_defaultsLoaded":true,"dist":{"shasum":"7be20185637d4fff84d5e23421ebd6a8ac68b6dc","tarball":"https://registry.npmjs.org/simple-profiler/-/simple-profiler-0.1.1.tgz","integrity":"sha512-Q6ZbKxqXoExeWiqGNPyGtRGrv5hwT9Gxa940NxAMRqNzmpS5bMwUMxUrKP12eOoacH7qkMstLZT082p6tLdG/Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHm77P/yCYFPGYxRsQ9lQwxpCbzYkC7G7huHupkdfiEdAiEAsDUwCkotQUC/wqey42WbIfPDuucHIqEYuVmuoQorwQg="}]},"maintainers":[{"name":"bwillard","email":"bwillard@gmail.com"}]}},"readme":"# node-profiler\n\nAccess the V8 profiler from node.js - http://nodejs.org/\n\n## A word of advice\n\nThis module is for people who need run-time control over V8's profiler. If all you want\nis wholesale profiling, you don't need it. Simply start `node` with profiling enabled:\n\n\tnode --prof application.js\n\nRead on, however, if you want to wield the arcane powers this module grants.\n\n## Compiling\n\nEasy as pie. To build from source:\n\n\tnode-waf configure build install\n\nOr, if you have `npm` installed:\n\n\tnpm install profiler\n\n## Usage\n\nIn most cases you will want to start your application with the profiler in suspended animation.\n\n\tnode --prof --prof_lazy application.js\n\nAnd inside your application:\n\n\tvar profiler = require('profiler');\n\t//\n\t// <here be code you don't want to profile>\n\t//\n\tprofiler.resume();\n\t//\n\t// <performance critical code here>\n\t//\n\tprofiler.pause();\n\nThis results in a v8.log being written to the current directory that you can process with the V8 profiling tools.\n\nSee http://code.google.com/p/v8/wiki/V8Profiler for more information.\n\n## Advanced usage\n\nBy default, everything that can be profiled, is: heap and CPU usage, and JS object construction.\nThis can be customized by passing a bitwise OR of the following flags to resume() and pause():\n\n\tprofiler.CPU\n\tprofiler.HEAP_STATS\n\tprofiler.HEAP_SNAPSHOT\n\tprofiler.JS_CONSTRUCTORS\n\nExample:\n\n\tprofiler.resume(profiler.CPU | profiler.JS_CONSTRUCTORS);\n\t//\n\t// <performance critical code here>\n\t//\n\tprofiler.pause(profiler.CPU | profiler.JS_CONSTRUCTORS);\n\nYou can optionally pass a tag to uniquely mark a section in the v8.log:\n\n\tprofiler.resume(profiler.CPU, 42);\n\t//\n\t// <performance critical code here>\n\t//\n\tprofiler.pause(profiler.CPU, 42);\n\nYou will sometimes want to run the garbage collector before profiling\na performance critical section of code. No problem, we got your back!\n\n    profiler.gc();\n    profiler.resume(profiler.CPU | profiler.HEAP_STATS);\n","maintainers":[{"name":"bwillard","email":"bwillard@gmail.com"}],"time":{"modified":"2022-06-26T19:47:55.215Z","created":"2011-12-02T16:11:50.584Z","0.1.0":"2011-12-02T16:12:11.680Z","0.1.1":"2011-12-02T16:22:33.467Z"},"author":{"name":"Brian Willard","email":"bwillard@gmail.com"},"repository":{"type":"git","url":"git://github.com/X-Streamly/node-profiler.git"}}