diff options
author | Richard Uhler <ruhler@google.com> | 2015-03-20 16:59:40 -0700 |
---|---|---|
committer | Richard Uhler <ruhler@google.com> | 2015-03-27 14:58:30 -0700 |
commit | 7d451ab96d3999cdcada940147a36505cfe8c57b (patch) | |
tree | d345ad9f0ad943598bd12504d6cc07ff68b52dcd /include | |
parent | e29744d94df787fa83307572d90a954b1592f69b (diff) | |
download | system_core-7d451ab96d3999cdcada940147a36505cfe8c57b.zip system_core-7d451ab96d3999cdcada940147a36505cfe8c57b.tar.gz system_core-7d451ab96d3999cdcada940147a36505cfe8c57b.tar.bz2 |
Define atrace_* functions for both target and host.
This change defines atrace_* functions for the host that act as
no-ops, which makes it easier to add tracing in ART.
Change-Id: I89397e83986686a2b6a6f245c25017eb379081b1
Diffstat (limited to 'include')
-rw-r--r-- | include/cutils/trace.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/include/cutils/trace.h b/include/cutils/trace.h index 59ff6c1..9d039e6 100644 --- a/include/cutils/trace.h +++ b/include/cutils/trace.h @@ -80,7 +80,6 @@ __BEGIN_DECLS #error ATRACE_TAG must be defined to be one of the tags defined in cutils/trace.h #endif -#ifdef HAVE_ANDROID_OS /** * Opens the trace file for writing and reads the property for initial tags. * The atrace.tags.enableflags property sets the tags to trace. @@ -248,19 +247,6 @@ static inline void atrace_int64(uint64_t tag, const char* name, int64_t value) } } -#else // not HAVE_ANDROID_OS - -#define ATRACE_INIT() -#define ATRACE_GET_ENABLED_TAGS() -#define ATRACE_ENABLED() 0 -#define ATRACE_BEGIN(name) -#define ATRACE_END() -#define ATRACE_ASYNC_BEGIN(name, cookie) -#define ATRACE_ASYNC_END(name, cookie) -#define ATRACE_INT(name, value) - -#endif // not HAVE_ANDROID_OS - __END_DECLS #endif // _LIBS_CUTILS_TRACE_H |