Commit f094bac9 by Courtney Goeltzenleuchter Committed by Commit Bot

Allow enabling trace annotations

Tracing was never allowed to happen because getStatus always returned false. Also want to allow tracing for release builds for perf analysis. Bug: angleproject:3176 Change-Id: I7aa94ed9fe3d7f67fe6dd10123c9badc7fb49d82 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1475248 Commit-Queue: Courtney Goeltzenleuchter <courtneygo@google.com> Reviewed-by: 's avatarJamie Madill <jmadill@google.com>
parent 2f1c1d7e
...@@ -200,7 +200,7 @@ config("angle_disable_pool_alloc") { ...@@ -200,7 +200,7 @@ config("angle_disable_pool_alloc") {
} }
config("debug_annotations_config") { config("debug_annotations_config") {
if (is_debug) { if (is_debug || angle_enable_trace) {
defines = [ "ANGLE_ENABLE_DEBUG_ANNOTATIONS" ] defines = [ "ANGLE_ENABLE_DEBUG_ANNOTATIONS" ]
} }
} }
......
...@@ -16,7 +16,11 @@ namespace angle ...@@ -16,7 +16,11 @@ namespace angle
bool LoggingAnnotator::getStatus() bool LoggingAnnotator::getStatus()
{ {
#if defined(ANGLE_TRACE_ENABLED)
return true;
#else
return false; return false;
#endif
} }
void LoggingAnnotator::beginEvent(const char *eventName, const char *eventMessage) void LoggingAnnotator::beginEvent(const char *eventName, const char *eventMessage)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment