pub fn configure_performance_counters(enable: bool) -> Result<()>
Enable or disable all performance counters attached to the calling process.
prctl(PR_TASK_PERF_EVENTS_ENABLE,…)
prctl(PR_TASK_PERF_EVENTS_DISABLE,…)