| 14 | using HPHP::HardwareCounter; |
| 15 | |
| 16 | void Init(const v8::FunctionCallbackInfo<v8::Value>& args) { |
| 17 | // TODO: Allow customizing recorded events |
| 18 | bool enable = true; |
| 19 | std::string events = ""; |
| 20 | bool recordSubprocesses = false; |
| 21 | HardwareCounter::Init(enable, events, recordSubprocesses); |
| 22 | HardwareCounter::s_counter.getCheck(); |
| 23 | } |
| 24 | |
| 25 | void GetCounters(const v8::FunctionCallbackInfo<v8::Value>& args) { |
| 26 | v8::Isolate* isolate = args.GetIsolate(); |
no test coverage detected