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

Unified Diff: chrome/browser/sync_file_system/drive_backend/sync_task_token.cc

Issue 337073002: [SyncFS] Add EVENT_TRACE to SyncTaskToken (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | « no previous file | chrome/browser/sync_file_system/task_logger.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync_file_system/drive_backend/sync_task_token.cc
diff --git a/chrome/browser/sync_file_system/drive_backend/sync_task_token.cc b/chrome/browser/sync_file_system/drive_backend/sync_task_token.cc
index a4b911ef17548136d752e5f117532642f788dae7..ffd8ca86974502341ef5bee290e1775120b0e514 100644
--- a/chrome/browser/sync_file_system/drive_backend/sync_task_token.cc
+++ b/chrome/browser/sync_file_system/drive_backend/sync_task_token.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/sync_file_system/drive_backend/sync_task_token.h"
#include "base/bind.h"
+#include "base/debug/trace_event.h"
#include "chrome/browser/sync_file_system/drive_backend/sync_task_manager.h"
#include "chrome/browser/sync_file_system/drive_backend/task_dependency_manager.h"
@@ -97,9 +98,19 @@ void SyncTaskToken::InitializeTaskLog(const std::string& task_description) {
task_log_.reset(new TaskLogger::TaskLog);
task_log_->start_time = base::TimeTicks::Now();
task_log_->task_description = task_description;
+
+ TRACE_EVENT_ASYNC_BEGIN1(
+ TRACE_DISABLED_BY_DEFAULT("SyncFileSystem"),
+ "SyncTask", task_log_->log_id,
+ "task_description", task_description);
}
void SyncTaskToken::FinalizeTaskLog(const std::string& result_description) {
+ TRACE_EVENT_ASYNC_END1(
+ TRACE_DISABLED_BY_DEFAULT("SyncFileSystem"),
+ "SyncTask", task_log_->log_id,
+ "result_description", result_description);
+
DCHECK(task_log_);
task_log_->result_description = result_description;
task_log_->end_time = base::TimeTicks::Now();
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/task_logger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698