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

Unified Diff: net/url_request/url_fetcher_core.cc

Issue 1834273002: Add TRACE_EVENT macros to net. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
Index: net/url_request/url_fetcher_core.cc
diff --git a/net/url_request/url_fetcher_core.cc b/net/url_request/url_fetcher_core.cc
index ee1a3d8c83010938d4c6d10cedc3e69fd348384b..213884f71b8d859a15f382af84fa3e061f1a39b5 100644
--- a/net/url_request/url_fetcher_core.cc
+++ b/net/url_request/url_fetcher_core.cc
@@ -15,6 +15,7 @@
#include "base/single_thread_task_runner.h"
#include "base/stl_util.h"
#include "base/thread_task_runner_handle.h"
+#include "base/trace_event/trace_event.h"
#include "base/tracked_objects.h"
#include "net/base/elements_upload_data_stream.h"
#include "net/base/io_buffer.h"
@@ -514,6 +515,7 @@ URLFetcherCore::~URLFetcherCore() {
}
void URLFetcherCore::StartOnIOThread() {
+ TRACE_EVENT0("net", "URLFetcherCore::StartOnIOThread");
DCHECK(network_task_runner_->BelongsToCurrentThread());
if (!response_writer_)
@@ -746,6 +748,7 @@ void URLFetcherCore::DidFinishWriting(int result) {
}
void URLFetcherCore::RetryOrCompleteUrlFetch() {
+ TRACE_EVENT0("net", "URLFetcherCore::RetryOrCompleteUrlFetch");
DCHECK(network_task_runner_->BelongsToCurrentThread());
base::TimeDelta backoff_delay;

Powered by Google App Engine
This is Rietveld 408576698