Android Systrace functions.
More...
Android Systrace functions.
To enable, #define ANDROID_ENABLE_SYSTRACE 1
|
#define | MAX_SYSTRACE_LEN 256 |
|
void SystraceAsyncBegin |
( |
const char * |
name, |
|
|
const int32_t |
cookie |
|
) |
| |
|
inline |
Begins an asynchronous block.
Name/Cookie need to be unique per block.
- Parameters
-
name | The name of the block, which will appear in the trace. |
cookie | Part of the unique identifier to note the block. |
void SystraceAsyncEnd |
( |
const char * |
name, |
|
|
const int32_t |
cookie |
|
) |
| |
|
inline |
Ends an asynchronous block.
- Parameters
-
name | The name of the block, which needs to match the one used to begin the block. |
cookie | The unique identifier of the block, which needs to match the one used to begin the block. |
void SystraceBegin |
( |
const char * |
name | ) |
|
|
inline |
Start a block, with the supplied name.
This will last until SystraceEnd is called. Nesting is supported!
- Parameters
-
name | The name of the block, which will appear in the trace. |
void SystraceCounter |
( |
const char * |
name, |
|
|
const int |
value |
|
) |
| |
|
inline |
Logs a value.
This will be displayed on a graph in the systrace.
- Parameters
-
name | The name that will be logged. |
value | The value to be logged with the given name. |
Initializes the settings for systrace.
This needs to be called before any other systrace call.