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

Unified Diff: net/socket/client_socket_handle.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/proxy/proxy_resolver_v8_tracing.cc ('k') | net/socket/socket_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/client_socket_handle.cc
diff --git a/net/socket/client_socket_handle.cc b/net/socket/client_socket_handle.cc
index b177fb6f3b2fa4486e8901f221db8741e70740d4..3d777186bf25002742d549c952630e6e81846a90 100644
--- a/net/socket/client_socket_handle.cc
+++ b/net/socket/client_socket_handle.cc
@@ -13,6 +13,8 @@
#include "net/base/net_errors.h"
#include "net/socket/client_socket_pool.h"
+#include "base/trace_event/trace_event.h"
+
namespace net {
ClientSocketHandle::ClientSocketHandle()
@@ -140,6 +142,7 @@ void ClientSocketHandle::SetSocket(scoped_ptr<StreamSocket> s) {
}
void ClientSocketHandle::OnIOComplete(int result) {
+ TRACE_EVENT0("net", "net::ClientSocketHandle::OnIOComplete");
CompletionCallback callback = user_callback_;
user_callback_.Reset();
HandleInitCompletion(result);
« no previous file with comments | « net/proxy/proxy_resolver_v8_tracing.cc ('k') | net/socket/socket_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698