summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libartbase/base/systrace.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libartbase/base/systrace.h b/libartbase/base/systrace.h
index 2ff33e8c84..d995dce285 100644
--- a/libartbase/base/systrace.h
+++ b/libartbase/base/systrace.h
@@ -24,6 +24,7 @@
#include <string>
#include "android-base/stringprintf.h"
+#include "macros.h"
namespace art {
@@ -75,7 +76,7 @@ class ScopedTraceNoStart {
};
#define SCOPED_TRACE \
- ::art::ScopedTraceNoStart trace ## __LINE__; \
+ ::art::ScopedTraceNoStart APPEND_TOKENS_AFTER_EVAL(trace, __LINE__) ; \
(ATRACE_ENABLED()) && ::art::ScopedTraceNoStart::ScopedTraceMessageHelper().stream()
} // namespace art