* These trace events can be collected and visualized using the Systrace tool.
* These trace events can be collected and visualized using the Systrace tool.
* For information about using the Systrace tool, read <a href="https://developer.android.com/studio/profile/systrace.html">Analyzing UI Performance with Systrace</a>.
* For information about using the Systrace tool, read <a href="https://developer.android.com/studio/profile/systrace.html">Analyzing UI Performance with Systrace</a>.
*
* Available since API level 23.
*/
*/
#ifndef ANDROID_NATIVE_TRACE_H
#ifndef ANDROID_NATIVE_TRACE_H
@@ -42,6 +44,8 @@ extern "C" {
/**
/**
* Returns true if tracing is enabled. Use this signal to avoid expensive computation only necessary
* Returns true if tracing is enabled. Use this signal to avoid expensive computation only necessary
* when tracing is enabled.
* when tracing is enabled.
*
* Available since API level 23.
*/
*/
boolATrace_isEnabled();
boolATrace_isEnabled();
@@ -52,6 +56,8 @@ bool ATrace_isEnabled();
* Note: At this time the vertical bar character '|' and newline character '\n' are used internally
* Note: At this time the vertical bar character '|' and newline character '\n' are used internally
* by the tracing mechanism. If sectionName contains these characters they will be replaced with a
* by the tracing mechanism. If sectionName contains these characters they will be replaced with a