diff options
author | 2018-06-18 12:28:46 -0700 | |
---|---|---|
committer | 2018-06-18 14:56:07 -0700 | |
commit | 9db409b053460e065cefb1d1caefe048f90cfff0 (patch) | |
tree | 30bc2090dc4954ea8a38ecb57152436c3da819eb /include/android/trace.h | |
parent | 5d51a061ead239c49e9a7fef2159adb00dddad21 (diff) |
Add __INTRODUCED_IN to core <android/*.h> APIs.
Bug: https://github.com/android-ndk/ndk/issues/706
Test: builds
Change-Id: I23db5a2180517045bafabe6fbf783456cbddf21a
Diffstat (limited to 'include/android/trace.h')
-rw-r--r-- | include/android/trace.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/include/android/trace.h b/include/android/trace.h index d9e5d8850f..9f59acfaba 100644 --- a/include/android/trace.h +++ b/include/android/trace.h @@ -37,13 +37,11 @@ extern "C" { #endif -#if __ANDROID_API__ >= 23 - /** * Returns true if tracing is enabled. Use this signal to avoid expensive computation only necessary * when tracing is enabled. */ -bool ATrace_isEnabled(); +bool ATrace_isEnabled() __INTRODUCED_IN(23); /** * Writes a tracing message to indicate that the given section of code has begun. This call must be @@ -53,7 +51,7 @@ bool ATrace_isEnabled(); * by the tracing mechanism. If sectionName contains these characters they will be replaced with a * space character in the trace. */ -void ATrace_beginSection(const char* sectionName); +void ATrace_beginSection(const char* sectionName) __INTRODUCED_IN(23); /** * Writes a tracing message to indicate that a given section of code has ended. This call must be @@ -61,9 +59,7 @@ void ATrace_beginSection(const char* sectionName); * 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. */ -void ATrace_endSection(); - -#endif /* __ANDROID_API__ >= 23 */ +void ATrace_endSection() __INTRODUCED_IN(23); #ifdef __cplusplus }; |