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

Unified Diff: net/url_request/url_fetcher_core.cc

Issue 1814463002: [NOT FOR REVIEW] Instrument net/ with trace events. Base URL: https://chromium.googlesource.com/chromium/src.git@profiler
Patch Set: meh 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/udp/udp_socket_posix.cc ('k') | net/url_request/url_request_http_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..6d0992c258b5711be6f927bfb0b66d5e3c4e411b 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"
@@ -32,6 +33,8 @@
#include "net/url_request/url_request_context_getter.h"
#include "net/url_request/url_request_throttler_manager.h"
+#include "base/trace_event/trace_event.h"
+
namespace {
const int kBufferSize = 4096;
@@ -514,6 +517,7 @@ URLFetcherCore::~URLFetcherCore() {
}
void URLFetcherCore::StartOnIOThread() {
+ TRACE_EVENT0("net", "URLFetcherCore::StartOnIOThread");
DCHECK(network_task_runner_->BelongsToCurrentThread());
if (!response_writer_)
@@ -746,6 +750,7 @@ void URLFetcherCore::DidFinishWriting(int result) {
}
void URLFetcherCore::RetryOrCompleteUrlFetch() {
+ TRACE_EVENT0("net", "net::URLFetcherCore::RetryOrCompleteUrlFetch");
DCHECK(network_task_runner_->BelongsToCurrentThread());
base::TimeDelta backoff_delay;
« no previous file with comments | « net/udp/udp_socket_posix.cc ('k') | net/url_request/url_request_http_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698