Bug 1451008 - Disable perfherder reporting for microbenchmarks on asan builds r=froydnj
authorWilliam Lachance <wlachance@mozilla.com>
Tue, 03 Apr 2018 11:31:36 -0400
changeset 411616 da0a77f37d802efd0f4f9321cc6ba3eefaccc17c
parent 411615 5365c443117be2ef5d68f484be2f9ada663c2f8a
child 411617 a260d56ab3a331cfa82364ef2ccf767cdd4b9454
push id101712
push userebalazs@mozilla.com
push dateWed, 04 Apr 2018 09:52:15 +0000
treeherdermozilla-inbound@dd31fb345c11 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1451008
milestone61.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1451008 - Disable perfherder reporting for microbenchmarks on asan builds r=froydnj MozReview-Commit-ID: HZLU6gsx7Sq
testing/gtest/mozilla/MozGTestBench.cpp
--- a/testing/gtest/mozilla/MozGTestBench.cpp
+++ b/testing/gtest/mozilla/MozGTestBench.cpp
@@ -13,17 +13,17 @@
 #define MOZ_GTEST_NUM_ITERATIONS 5
 
 using mozilla::TimeStamp;
 
 namespace mozilla {
 void GTestBench(const char* aSuite, const char* aName,
                 const std::function<void()>& aTest)
 {
-#ifdef DEBUG
+#if defined(DEBUG) || defined(MOZ_ASAN)
   // Run the test to make sure that it doesn't fail but don't log
   // any measurements since it's not an optimized build.
   aTest();
 #else
   bool shouldAlert = bool(getenv("PERFHERDER_ALERTING_ENABLED"));
   std::vector<int> durations;
 
   for (int i=0; i<MOZ_GTEST_NUM_ITERATIONS; i++) {