Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1126)

Unified Diff: chrome/test/live_sync/performance/sync_timing_helper.cc

Issue 7464046: Sync performance tests: Cleanup TODOs and print in dashboard friendly format (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add benchmark points TODO to all datatypes Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/live_sync/performance/sync_timing_helper.cc
diff --git a/chrome/test/live_sync/performance/sync_timing_helper.cc b/chrome/test/live_sync/performance/sync_timing_helper.cc
index 059589604fc7431747f68cf7c67e02349d9650fb..d1f9f769cebfb693e48ed852726c230382c036db 100644
--- a/chrome/test/live_sync/performance/sync_timing_helper.cc
+++ b/chrome/test/live_sync/performance/sync_timing_helper.cc
@@ -4,6 +4,7 @@
#include "chrome/test/live_sync/performance/sync_timing_helper.h"
+#include "base/string_number_conversions.h"
#include "base/time.h"
#include "chrome/browser/sync/profile_sync_service_harness.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -35,3 +36,11 @@ base::TimeDelta SyncTimingHelper::TimeUntilQuiescence(
EXPECT_TRUE(ProfileSyncServiceHarness::AwaitQuiescence(clients));
return base::Time::Now() - start;
}
+
+// static
+void SyncTimingHelper::PrintResult(const std::string& measurement,
+ const std::string& trace,
+ const base::TimeDelta& dt) {
+ printf("*RESULT %s: %s= %s ms\n", measurement.c_str(), trace.c_str(),
+ base::IntToString(dt.InMillisecondsF()).c_str());
+}
« no previous file with comments | « chrome/test/live_sync/performance/sync_timing_helper.h ('k') | chrome/test/live_sync/performance/typed_urls_sync_perf_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698