This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

dtracer

0.1.3 • Public • Published

dtracer

Simple library for event tracing using a number of other libraries which can be enabled or disabled as required.

The aim of this library is to provide a simple way of integrating dtrace or alternatively log based tracing within a node.js javascript library.

Build Status

Getting Started

Install the module with: npm install dtracer

Documentation

This library will optionally load the dtrace provider and provides a number of utility methods for adding and firing probes.

The default tracer is accessible through the tracer module directly.

var dtracer = require('dtracer')

// configures an application with DTrace used as the default provider
dtracer
    .addProbe("startChild", "int", "char*")
    .addProbe("stopChild", "int", "char*")
    .addProbe("onExit", "int", "char*")

tracer.enable()

tracer.probes.startChild(123, "cool new child") // fire a probe with the previously specified parameters

Note: As per limitations with the node-dtrace-provider you only get 6 arguments per probe to play with, so choose wisely.

Examples

(Coming soon)

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.

License

Copyright (c) 2013 Mark Wolfe
Licensed under the MIT license.

Dependents (0)

Package Sidebar

Install

npm i dtracer

Weekly Downloads

0

Version

0.1.3

License

none

Last publish

Collaborators

  • wolfeidau