diff options
author | Justin DeMartino <jjdemartino@google.com> | 2020-09-21 13:23:58 -0700 |
---|---|---|
committer | Justin DeMartino <jjdemartino@google.com> | 2020-09-21 13:23:58 -0700 |
commit | 7e4fe6a28b718ab97c08811566238af2893ca65b (patch) | |
tree | 5413a5ec890b5a1ac4fbbe4548b5014e41a2591b /libc/private/bionic_systrace.h | |
parent | dcdcb3fa15004669823a3a118189d9d72ff30852 (diff) | |
parent | ab08b955a34423d53b28a6210e7530e67241af4a (diff) |
Merge SP1A.200921.001
Change-Id: Id2ab019914bb555dadf52c46b8403c0d5fb3c20a
Diffstat (limited to 'libc/private/bionic_systrace.h')
-rw-r--r-- | libc/private/bionic_systrace.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libc/private/bionic_systrace.h b/libc/private/bionic_systrace.h index dbe173919..6b11812bd 100644 --- a/libc/private/bionic_systrace.h +++ b/libc/private/bionic_systrace.h @@ -16,8 +16,12 @@ #pragma once +#include <cutils/trace.h> // For ATRACE_TAG_BIONIC. + #include "platform/bionic/macros.h" +static constexpr char kTraceTagsProp[] = "debug.atrace.tags.enableflags"; + // Tracing class for bionic. To begin a trace at a specified point: // ScopedTrace("Trace message"); // The trace will end when the contructor goes out of scope. @@ -33,5 +37,9 @@ class __LIBC_HIDDEN__ ScopedTrace { BIONIC_DISALLOW_COPY_AND_ASSIGN(ScopedTrace); }; +int get_trace_marker_fd(); +bool should_trace(const uint64_t enable_tags = ATRACE_TAG_BIONIC); +void output_trace(const char* message, const char event = 'B'); + void bionic_trace_begin(const char* message); void bionic_trace_end(); |