mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-10 07:00:53 +00:00
capture: add sysprof_collector_is_active()
This can be used to check if a collector is actively running.
This commit is contained in:
@ -863,3 +863,15 @@ sysprof_collector_request_counter (unsigned int n_counters)
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
bool
|
||||
sysprof_collector_is_active (void)
|
||||
{
|
||||
bool ret = false;
|
||||
|
||||
COLLECTOR_BEGIN {
|
||||
ret = true;
|
||||
} COLLECTOR_END;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user