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

Unified Diff: sync/syncable/syncable_base_transaction.cc

Issue 18083015: Add queued_time_ms trace for events in message loop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Naming etc Created 7 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
« base/tracking_info.h ('K') | « base/tracking_info.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/syncable/syncable_base_transaction.cc
diff --git a/sync/syncable/syncable_base_transaction.cc b/sync/syncable/syncable_base_transaction.cc
index d068bb9399a688c1c42825dbce8a0bb84a9976d2..69783ca735c5fbc018fc56f20b16a0066d35acd8 100644
--- a/sync/syncable/syncable_base_transaction.cc
+++ b/sync/syncable/syncable_base_transaction.cc
@@ -19,9 +19,8 @@ Id BaseTransaction::root_id() const {
}
void BaseTransaction::Lock() {
- TRACE_EVENT2("sync_lock_contention", "AcquireLock",
- "src_file", from_here_.file_name(),
- "src_func", from_here_.function_name());
+ TRACE_EVENT1("sync_lock_contention", "AcquireLock",
+ "src", from_here_.ToTraceFormat());
directory_->kernel_->transaction_mutex.Acquire();
}
@@ -65,9 +64,8 @@ BaseTransaction::BaseTransaction(const tracked_objects::Location& from_here,
// TODO(lipalani): Don't issue a good transaction if the directory has
// unrecoverable error set. And the callers have to check trans.good before
// proceeding.
- TRACE_EVENT_BEGIN2("sync", name_,
- "src_file", from_here_.file_name(),
- "src_func", from_here_.function_name());
+ TRACE_EVENT_BEGIN1("sync", name_,
+ "src", from_here_.ToTraceFormat());
}
BaseTransaction::~BaseTransaction() {
« base/tracking_info.h ('K') | « base/tracking_info.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698