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

Unified Diff: net/disk_cache/blockfile/in_flight_backend_io.cc

Issue 1840783002: Add TRACE_EVENT macros to net (after crrev.com/1834273002) Base URL: https://chromium.googlesource.com/chromium/src.git@trace_net1
Patch Set: Created 4 years, 9 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 | « net/cert/multi_threaded_cert_verifier.cc ('k') | net/disk_cache/blockfile/in_flight_io.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/blockfile/in_flight_backend_io.cc
diff --git a/net/disk_cache/blockfile/in_flight_backend_io.cc b/net/disk_cache/blockfile/in_flight_backend_io.cc
index 307f7d2a8d09a2f35030929d055a1465e482b283..73245999de34db5902f7acfc9ae7b3152345e937 100644
--- a/net/disk_cache/blockfile/in_flight_backend_io.cc
+++ b/net/disk_cache/blockfile/in_flight_backend_io.cc
@@ -11,6 +11,7 @@
#include "base/compiler_specific.h"
#include "base/logging.h"
#include "base/single_thread_task_runner.h"
+#include "base/trace_event/trace_event.h"
#include "net/base/net_errors.h"
#include "net/disk_cache/blockfile/backend_impl.h"
#include "net/disk_cache/blockfile/entry_impl.h"
@@ -234,6 +235,7 @@ base::TimeDelta BackendIO::ElapsedTime() const {
// Runs on the background thread.
void BackendIO::ExecuteBackendOperation() {
+ TRACE_EVENT0("net", "BackendIO::ExecuteBackendOperation");
switch (operation_) {
case OP_INIT:
result_ = backend_->SyncInit();
« no previous file with comments | « net/cert/multi_threaded_cert_verifier.cc ('k') | net/disk_cache/blockfile/in_flight_io.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698