|
std::mutex | mLock |
|
bool | mInitialised |
|
unsigned | mBackends |
|
int | mTraceFileFd |
|
std::unique_ptr< perfetto::TracingSession > | mInProcessSession |
|
|
static PerfettoTracingSingleton * | mInstance = nullptr |
|
static pthread_rwlock_t | mInstanceLock = PTHREAD_RWLOCK_INITIALIZER |
|
◆ initialise()
bool PerfettoTracingSingleton::initialise |
( |
unsigned |
backends | ) |
|
Sets the tracing mode to either 'system' or 'in process'.
This is a one time operation, it is not possible to change the mode once set.
◆ instance()
Get the singleton instance of the Perfetto tracing interface.
◆ isTracing()
bool PerfettoTracingSingleton::isTracing |
( |
| ) |
const |
Returns true
if currently tracing.
For in process tracing, this will return true
if startInProcessTracing() was called. For system tracing this will only return true
if the system traced daemon has started the trace.
◆ startInProcessTracing()
bool PerfettoTracingSingleton::startInProcessTracing |
( |
int |
fd, |
|
|
const std::string & |
categoryFilter |
|
) |
| |
Starts an in process trace, writing the trace file to the given fd.
◆ stopInProcessTracing()
void PerfettoTracingSingleton::stopInProcessTracing |
( |
| ) |
|
Stops the 'in process' tracing.
The documentation for this class was generated from the following files: