stacks-to-json-stack-tree
Convert dtrace/perf stack samples into a JSON tree
Last updated 9 years ago by davidmarkclements .
Apache 2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ npm install stacks-to-json-stack-tree 
SYNC missed versions from official npm registry.

stacks-to-json-stack-tree

Convert dtrace/perf stack samples into a JSON tree

Installation

npm install stacks-to-json-stack-tree --save

Usage

var fs = require('fs')
var stacksToJsonStackTree = require('stacks-to-json-stack-tree')
var mapFrames = (frames, instance) => frames // mapFrames is optional
var convertAndCollectFromStream = stacksToJsonStackTree(mapFrames, function (err, json) {
  if (err) throw err
  console.log(json)
})

fs.createReadStream('path/to/stacks').pipe(convertAndCollectFromStream)

Dependencies

  • debug: small debugging utility
  • end-of-stream: Call a callback when a readable/writable/duplex stream has completed or failed.
  • through2: A tiny wrapper around Node streams2 Transform to avoid explicit subclassing noise

Dev Dependencies

None

License

Apache 2.0

Current Tags

  • 1.0.2                                ...           latest (9 years ago)

3 Versions

  • 1.0.2                                ...           9 years ago
  • 1.0.1                                ...           9 years ago
  • 1.0.0                                ...           9 years ago
Maintainers (1)
Downloads
Total 9
Today 0
This Week 0
This Month 9
Last Day 0
Last Week 3
Last Month 0
Dependencies (3)
Dev Dependencies (0)
None
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE