{
  "_args": [
    [
      "v8-profiler@git://github.com/jrieken/v8-profiler.git#bc0803a4d4b2150b8a1bbffa80270769007036c2",
      "D:\\work\\3\\s"
    ]
  ],
  "_from": "v8-profiler@5.6.5",
  "_id": "v8-profiler@5.6.5",
  "_inCache": true,
  "_location": "/v8-profiler",
  "_phantomChildren": {},
  "_requested": {
    "hosted": {
      "directUrl": "https://raw.githubusercontent.com/jrieken/v8-profiler/bc0803a4d4b2150b8a1bbffa80270769007036c2/package.json",
      "gitUrl": "git://github.com/jrieken/v8-profiler.git#bc0803a4d4b2150b8a1bbffa80270769007036c2",
      "httpsUrl": "git+https://github.com/jrieken/v8-profiler.git#bc0803a4d4b2150b8a1bbffa80270769007036c2",
      "shortcut": "github:jrieken/v8-profiler#bc0803a4d4b2150b8a1bbffa80270769007036c2",
      "ssh": "git@github.com:jrieken/v8-profiler.git#bc0803a4d4b2150b8a1bbffa80270769007036c2",
      "sshUrl": "git+ssh://git@github.com/jrieken/v8-profiler.git#bc0803a4d4b2150b8a1bbffa80270769007036c2",
      "type": "github"
    },
    "name": "v8-profiler",
    "raw": "v8-profiler@git://github.com/jrieken/v8-profiler.git#bc0803a4d4b2150b8a1bbffa80270769007036c2",
    "rawSpec": "git://github.com/jrieken/v8-profiler.git#bc0803a4d4b2150b8a1bbffa80270769007036c2",
    "scope": null,
    "spec": "git://github.com/jrieken/v8-profiler.git#bc0803a4d4b2150b8a1bbffa80270769007036c2",
    "type": "hosted"
  },
  "_requiredBy": [
    "/"
  ],
  "_resolved": "git://github.com/jrieken/v8-profiler.git#bc0803a4d4b2150b8a1bbffa80270769007036c2",
  "_shasum": "278904e861eb75564131f508d55bf65ff1496739",
  "_shrinkwrap": null,
  "_spec": "v8-profiler@git://github.com/jrieken/v8-profiler.git#bc0803a4d4b2150b8a1bbffa80270769007036c2",
  "_where": "D:\\work\\3\\s",
  "author": {
    "email": "dannycoates@gmail.com",
    "name": "Danny Coates"
  },
  "bugs": {
    "url": "https://github.com/node-inspector/v8-profiler/issues"
  },
  "contributors": [
    {
      "name": "Miroslav Bajtoš"
    },
    {
      "email": "3y3@bk.ru",
      "name": "3y3"
    }
  ],
  "dependencies": {
    "nan": "^2.3.2"
  },
  "description": "node bindings for the v8 profiler",
  "devDependencies": {
    "chai": "^1.9.1",
    "co": "^4.6.0",
    "mocha": "^1.20.1",
    "rimraf": "^2.4.4"
  },
  "engines": {
    "node": ">=0.10"
  },
  "gitHead": "bc0803a4d4b2150b8a1bbffa80270769007036c2",
  "gypfile": true,
  "homepage": "http://github.com/node-inspector/v8-profiler",
  "keywords": [
    "profiler",
    "inspector"
  ],
  "license": "BSD-2-Clause",
  "main": "v8-profiler",
  "name": "v8-profiler",
  "optionalDependencies": {},
  "readme": "[![Build Status](https://secure.travis-ci.org/node-inspector/v8-profiler.png?branch=master)](http://travis-ci.org/node-inspector/v8-profiler)\n[![Build status](https://ci.appveyor.com/api/projects/status/hhgloy5smkl5i8fd/branch/master?svg=true)](https://ci.appveyor.com/project/3y3/v8-profiler/branch/master)\n[![npm version](https://badge.fury.io/js/v8-profiler.svg)](http://badge.fury.io/js/v8-profiler)\n\nv8-profiler provides [node](http://github.com/ry/node) bindings for the v8\nprofiler and integration with [node-inspector](http://github.com/dannycoates/node-inspector)\n\n## Installation\n```sh\nnpm install v8-profiler\n```\n## Usage\n```js\nvar profiler = require('v8-profiler');\n```\n## API\n`takeSnapshot([name])` - returns new HEAP Snapshot instance. `name` is optional argument, by default snapshot name will be constructed from his uid.\n\n`deleteAllSnapshots()` - works as described in name.\n\n```js\nvar snapshot1 = profiler.takeSnapshot('1');\nvar snapshot2 = profiler.takeSnapshot();\nprofiler.deleteAllSnapshots();\n```\n\n`startProfiling([name], [recsamples])` - start CPU profiling. `name` is optional argument, by default profile name will be constructed from his uid. `recsamples` is true by default.\n\n`stopProfiling([name])` - returns new CPU Profile instance. There is no strictly described behavior for usage without `name` argument.\n\n`setSamplingInterval([num])` - Changes default CPU profiler sampling interval to the specified number of microseconds. Default interval is 1000us. This method must be called when there are no profiles being recorded. If called without arguments it resets interval to default.\n\n`deleteAllProfiles()` - works as described in name.\n\n```js\nprofiler.startProfiling('', true);\nsetTimeout(function() {\n  var profile = profiler.stopProfiling('');\n  profiler.deleteAllProfiles();\n}, 1000);\n```\n\n### HEAP Snapshot API\n`Snapshot.getHeader()` - provides short information about snapshot.\n\n`Snapshot.compare(snapshot)` - creates HEAP diff for two snapshots.\n\n`Snapshot.delete()` - removes snapshot from memory.\n\n`Snapshot.export([callback])` - provides simple export API for snapshot. `callback(error, data)` receives serialized snapshot as second argument. (Serialization is not equal to `JSON.stringify` result).\n\nIf callback will not be passed, `export` returns transform stream.\n\n`Snapshot.serialize` - low level serialization method. Look `Snapshot.export` source for usage example.\n\n```js\nvar fs = require('fs');\nvar profiler = require('v8-profiler');\nvar snapshot1 = profiler.takeSnapshot();\nvar snapshot2 = profiler.takeSnapshot();\n\nconsole.log(snapshot1.getHeader(), snapshot2.getHeader());\n\nconsole.log(snapshot1.compare(snapshot2));\n\n// Export snapshot to file file\nsnapshot1.export(function(error, result) {\n  fs.writeFileSync('snapshot1.json', result);\n  snapshot1.delete();\n});\n\n// Export snapshot to file stream\nsnapshot2.export()\n  .pipe(fs.createWriteStream('snapshot2.json'))\n  .on('finish', snapshot2.delete);\n```\n\n## CPU Profile API\n`Profile.getHeader()` - provides short information about profile.\n\n`Profile.delete()` - removes profile from memory.\n\n`Profile.export([callback])` - provides simple export API for profile. `callback(error, data)` receives serialized profile as second argument. (Serialization is equal to `JSON.stringify` result).\n\n```js\nvar fs = require('fs');\nvar profiler = require('v8-profiler');\nprofiler.startProfiling('1', true);\nvar profile1 = profiler.stopProfiling();\nprofiler.startProfiling('2', true);\nvar profile2 = profiler.stopProfiling();\n\nconsole.log(snapshot1.getHeader(), snapshot2.getHeader());\n\nprofile1.export(function(error, result) {\n  fs.writeFileSync('profile1.json', result);\n  profile1.delete();\n});\n\nprofile2.export()\n  .pipe(fs.createWriteStream('profile2.json'))\n  .on('finish', function() {\n    profile2.delete();\n  });\n```\n\n## node-inspector\n\nCpu profiles can be viewed and heap snapshots may be taken and viewed from the\nprofiles panel.\n",
  "readmeFilename": "readme.md",
  "repository": {
    "type": "git",
    "url": "git://github.com/node-inspector/v8-profiler.git"
  },
  "scripts": {
    "install": "node-gyp rebuild",
    "test": "mocha --debug"
  },
  "version": "5.6.5"
}
