Index: chrome/browser/sync/glue/data_type_manager_impl.cc |
diff --git a/chrome/browser/sync/glue/data_type_manager_impl.cc b/chrome/browser/sync/glue/data_type_manager_impl.cc |
index 2d49be4b85407ad635ab8ebf14ccba40aa9b8796..341b27357989fe30dfd3e97439582a8d8e209663 100644 |
--- a/chrome/browser/sync/glue/data_type_manager_impl.cc |
+++ b/chrome/browser/sync/glue/data_type_manager_impl.cc |
@@ -10,6 +10,7 @@ |
#include "base/bind.h" |
#include "base/callback.h" |
#include "base/compiler_specific.h" |
+#include "base/debug/trace_event.h" |
#include "base/logging.h" |
#include "base/message_loop.h" |
#include "base/metrics/histogram.h" |
@@ -293,6 +294,8 @@ void DataTypeManagerImpl::StartNextType() { |
// front of the list. |
if (!needs_start_.empty()) { |
VLOG(1) << "Starting " << needs_start_[0]->name(); |
+ TRACE_EVENT_BEGIN1("sync", "ModelAssociation", |
+ "DataType", ModelTypeToString(needs_start_[0]->type())); |
needs_start_[0]->Start( |
NewCallback(this, &DataTypeManagerImpl::TypeStartCallback)); |
return; |
@@ -332,6 +335,8 @@ void DataTypeManagerImpl::TypeStartCallback( |
// on the UI thread. |
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
+ TRACE_EVENT_END0("sync", "ModelAssociation"); |
+ |
if (state_ == STOPPING) { |
// If we reach this callback while stopping, this means that |
// DataTypeManager::Stop() was called while the current data type |