| 67 | } |
| 68 | |
| 69 | void startProfiler() { |
| 70 | asprof_error_t err = _asprof_execute("start,event=cpu,interval=1ms,cstack=vmx", outputCallback); |
| 71 | if (err != NULL) { |
| 72 | std::cerr << _asprof_error_str(err) << std::endl; |
| 73 | exit(1); |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | void stopProfiler(char* output_file) { |
| 78 | char cmd[4096]; |
no outgoing calls
no test coverage detected