summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2018-07-27 17:29:26 -0700
committerandroid-build-merger <android-build-merger@google.com>2018-07-27 17:29:26 -0700
commit2a618f079cca2fb2bae228065bc81f94641f12a8 (patch)
treee791c2cb89d2b3b513b182dd881342c19f19b8e9
parent73bf7a040ffc500ae9339bd9e71ab8b06f4839c4 (diff)
parentdd2ded17b9dbaf7aa61f96259577b661928b4020 (diff)
downloadnative-2a618f079cca2fb2bae228065bc81f94641f12a8.tar.gz
Merge "Add availability information to the <android/trace.h> docs."
am: dd2ded17b9 Change-Id: Id5259d4656d8c4026c0d3535139b9c8c3ba21fc2
-rw-r--r--include/android/trace.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/android/trace.h b/include/android/trace.h
index d9e5d8850f..ca0935f975 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 @@ extern "C" {
/**
* 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 @@ bool ATrace_isEnabled();
* 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 @@ void ATrace_beginSection(const char* sectionName);
* 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();