There are some formatting improvements here with respect to indentation and curlies around conditionals. I have also fixed a problem with cpu_mode incorrectly accessing structures used only in perf_mode. Finally, I have made reading sample values more robust (and avoided allocating a large array buffer on the stack).
There are some formatting improvements here with respect to indentation and curlies around conditionals. I have also fixed a problem with cpu_mode incorrectly accessing structures used only in perf_mode. Finally, I have made reading sample values more robust (and avoided allocating a large array buffer on the stack).