| 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());
|
| +}
|
|
|