Index: runtime/vm/profiler_test.cc |
diff --git a/runtime/vm/profiler_test.cc b/runtime/vm/profiler_test.cc |
index 5176943c54006ec7ef95479ce5f4e981f8ada696..ccada84dc3b8c8812b8727ed8832a4cabac97a60 100644 |
--- a/runtime/vm/profiler_test.cc |
+++ b/runtime/vm/profiler_test.cc |
@@ -316,6 +316,8 @@ TEST_CASE(Profiler_TrivialRecordAllocation) { |
} |
} |
+#if defined(DART_USE_TCMALLOC) && defined(HOST_OS_LINUX) && defined(DEBUG) && \ |
+ defined(HOST_ARCH_x64) |
DART_NOINLINE static void NativeAllocationSampleHelper(char** result) { |
ASSERT(result != NULL); |
@@ -522,6 +524,8 @@ ISOLATE_UNIT_TEST_CASE(Profiler_NativeAllocation) { |
MallocHooks::TearDown(); |
FLAG_enable_malloc_hooks = enable_malloc_hooks_saved; |
} |
+#endif // defined(DART_USE_TCMALLOC) && !defined(PRODUCT) && |
+ // !defined(TARGET_ARCH_DBC) && !defined(HOST_OS_FUCHSIA) |
TEST_CASE(Profiler_ToggleRecordAllocation) { |