Add availability information to the <android/trace.h> docs.
Bug: N/A
Test: N/A
Change-Id: I47e5f9c4ba463f030b26a401acf262eee63d9956
diff --git a/include/android/trace.h b/include/android/trace.h
index d9e5d88..ca0935f 100644
--- a/include/android/trace.h
+++ b/include/android/trace.h
@@ -25,6 +25,8 @@
*
* 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>.
+ *
+ * Available since API level 23.
*/
#ifndef ANDROID_NATIVE_TRACE_H
@@ -42,6 +44,8 @@
/**
* Returns true if tracing is enabled. Use this signal to avoid expensive computation only necessary
* when tracing is enabled.
+ *
+ * Available since API level 23.
*/
bool ATrace_isEnabled();
@@ -52,6 +56,8 @@
* 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
* space character in the trace.
+ *
+ * Available since API level 23.
*/
void ATrace_beginSection(const char* sectionName);
@@ -60,6 +66,8 @@
* preceeded by a corresponding call to beginSection(char*) on the same thread. Calling this method
* will mark the end of the most recently begun section of code, so care must be taken to ensure
* that beginSection / endSection pairs are properly nested and called from the same thread.
+ *
+ * Available since API level 23.
*/
void ATrace_endSection();