react/scripts/perf-counters
Héctor Ramos b87aabdfe1
Drop the year from Facebook copyright headers and the LICENSE file. (#13593)
2018-09-07 15:11:23 -07:00
..
src Drop the year from Facebook copyright headers and the LICENSE file. (#13593) 2018-09-07 15:11:23 -07:00
Makefile Add rudimentary jsc perf-counters runner 2015-09-30 23:36:06 -07:00
README.md Add node bindings 2015-09-19 11:30:28 -07:00
binding.gyp Add node bindings 2015-09-19 11:30:28 -07:00
index.js Add node bindings 2015-09-19 11:30:28 -07:00
package.json Change license and remove references to PATENTS 2017-09-25 18:17:44 -07:00

README.md

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 }
>