pub struct StatisticCollectionControl;
impl StatisticCollectionControl
{
#[inline(always)]
pub fn pause()
{
unsafe { __itt_pause() }
}
#[inline(always)]
pub fn resume()
{
unsafe { __itt_resume() }
}
#[inline(always)]
pub fn detach()
{
unsafe { __itt_detach() }
}
#[inline(always)]
pub fn ignore_current_thread()
{
unsafe { __itt_thread_ignore() }
}
#[cfg(unix)]
#[inline(always)]
pub fn name_current_thread(name: &str)
{
let name = CString::new(name).unwrap();
unsafe { __itt_thread_set_name(name.as_ptr()) }
}
#[cfg(windows)]
#[inline(always)]
pub fn name_current_thread(name: &str)
{
let name = CString::new(name).unwrap();
unsafe { __itt_thread_set_nameA(name.as_ptr()) }
}
}