From da26deb0b4dc1ce0841d5e7c3782049989e95e8e Mon Sep 17 00:00:00 2001 From: Vyacheslav Egorov Date: Tue, 20 Sep 2022 10:58:25 +0000 Subject: [PATCH] [vm] Allow enabling timeline in PRODUCT via DART_ENABLE_TIMELINE define R=kustermann@google.com TEST=not-needed Bug: b/245563515 Change-Id: I91d118c4bbe39cc9642dc07567f2fde812f6fe4a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/260103 Reviewed-by: Martin Kustermann Commit-Queue: Slava Egorov --- runtime/vm/globals.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/runtime/vm/globals.h b/runtime/vm/globals.h index 222447fa5f4..ad5687ba0a0 100644 --- a/runtime/vm/globals.h +++ b/runtime/vm/globals.h @@ -113,8 +113,9 @@ const intptr_t kDefaultNewGenSemiMaxSize = (kWordSize <= 4) ? 8 : 16; #define NOT_IN_PRECOMPILED_RUNTIME(code) code #endif // defined(DART_PRECOMPILED_RUNTIME) -#if !defined(PRODUCT) || defined(DART_HOST_OS_FUCHSIA) || \ - defined(DART_TARGET_OS_FUCHSIA) || defined(DART_TARGET_OS_ANDROID) +#if defined(DART_ENABLE_TIMELINE) || !defined(PRODUCT) || \ + defined(DART_HOST_OS_FUCHSIA) || defined(DART_TARGET_OS_FUCHSIA) || \ + defined(DART_TARGET_OS_ANDROID) #define SUPPORT_TIMELINE 1 #endif