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

Unified Diff: chrome/browser/sync/glue/data_type_manager_impl.h

Issue 6948010: [Sync] Log time spent configuring data types (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix comment Created 9 years, 7 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
« no previous file with comments | « chrome/browser/sync/glue/data_type_manager.h ('k') | chrome/browser/sync/glue/data_type_manager_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/glue/data_type_manager_impl.h
diff --git a/chrome/browser/sync/glue/data_type_manager_impl.h b/chrome/browser/sync/glue/data_type_manager_impl.h
index 9764981c475247bcaf2fac279dd0b7f0b568871b..bd7707472fc2ca9ae999310381d1ee708882e0c3 100644
--- a/chrome/browser/sync/glue/data_type_manager_impl.h
+++ b/chrome/browser/sync/glue/data_type_manager_impl.h
@@ -13,6 +13,7 @@
#include "base/basictypes.h"
#include "base/task.h"
+#include "base/time.h"
namespace browser_sync {
@@ -59,6 +60,10 @@ class DataTypeManagerImpl : public DataTypeManager {
const tracked_objects::Location& location);
void SetBlockedAndNotify();
+ // Add to |configure_time_delta_| the time since we last called
+ // Restart().
+ void AddToConfigureTime();
+
SyncBackendHost* backend_;
// Map of all data type controllers that are available for sync.
// This list is determined at startup by various command line flags.
@@ -79,6 +84,13 @@ class DataTypeManagerImpl : public DataTypeManager {
ScopedRunnableMethodFactory<DataTypeManagerImpl> method_factory_;
+ // The last time Restart() was called.
+ base::Time last_restart_time_;
+
+ // The accumulated time spent between calls to Restart() and going
+ // to the DONE/BLOCKED state.
+ base::TimeDelta configure_time_delta_;
+
DISALLOW_COPY_AND_ASSIGN(DataTypeManagerImpl);
};
« no previous file with comments | « chrome/browser/sync/glue/data_type_manager.h ('k') | chrome/browser/sync/glue/data_type_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698