react/scripts/perf-counters
Andrew Clark 9cdf8a99ed
[Codemod] Update copyright header to Meta (#25315)
* Facebook -> Meta in copyright

rg --files | xargs sed -i 's#Copyright (c) Facebook, Inc. and its affiliates.#Copyright (c) Meta Platforms, Inc. and affiliates.#g'

* Manual tweaks
2022-10-18 11:19:24 -04:00
..
src [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04: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 }
>