summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Elliott Hughes <enh@google.com> 2018-07-27 17:32:38 -0700
committer android-build-merger <android-build-merger@google.com> 2018-07-27 17:32:38 -0700
commitd865b74f92fc2fc1dab95183e3de4c3021a9f7a6 (patch)
tree1b23ae093ad4d7e30e583cae246c83120e371ff9
parente2c473d2021b35c2d5df909bbb7a28061eaf56fd (diff)
parent2a618f079cca2fb2bae228065bc81f94641f12a8 (diff)
Merge "Add availability information to the <android/trace.h> docs." am: dd2ded17b9
am: 2a618f079c Change-Id: I3fa9023ab1c74902aee7727ee2e879181ff7307f
-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 9f59acfaba..43ace33802 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
@@ -40,6 +42,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() __INTRODUCED_IN(23);
@@ -50,6 +54,8 @@ bool ATrace_isEnabled() __INTRODUCED_IN(23);
* 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) __INTRODUCED_IN(23);
@@ -58,6 +64,8 @@ void ATrace_beginSection(const char* sectionName) __INTRODUCED_IN(23);
* 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() __INTRODUCED_IN(23);