perf-counters

0.1.2 • Public • Published

perf-counters

Lightweight bindings to Linux perf event counters.

$ node
> var PerfCounters = require('perf-counters');
> PerfCounters.init();
> var start = PerfCounters.getCounters(); console.log('test'); var end = PerfCounters.getCounters();
test
> start
{ instructions: 1382, loads: 421, stores: 309 }
> end
{ instructions: 647633, loads: 195771, stores: 133246 }
>

/perf-counters/

    Package Sidebar

    Install

    npm i perf-counters

    Weekly Downloads

    1

    Version

    0.1.2

    License

    BSD-3-Clause

    Last publish

    Collaborators

    • sophiebits