Chromium Code Reviews| Index: net/socket/ssl_client_socket_pool.cc |
| diff --git a/net/socket/ssl_client_socket_pool.cc b/net/socket/ssl_client_socket_pool.cc |
| index 371ec00ca24f06a94ce770a9377e4cdd5807f5e2..572cdc19eb6d2ea2722e328f220c2ba04efe6171 100644 |
| --- a/net/socket/ssl_client_socket_pool.cc |
| +++ b/net/socket/ssl_client_socket_pool.cc |
| @@ -12,6 +12,7 @@ |
| #include "base/metrics/histogram_macros.h" |
| #include "base/metrics/sparse_histogram.h" |
| #include "base/profiler/scoped_tracker.h" |
| +#include "base/trace_event/trace_event.h" |
| #include "base/values.h" |
| #include "net/base/host_port_pair.h" |
| #include "net/base/net_errors.h" |
| @@ -166,12 +167,14 @@ void SSLConnectJob::GetAdditionalErrorState(ClientSocketHandle* handle) { |
| } |
| void SSLConnectJob::OnIOComplete(int result) { |
| + TRACE_EVENT0("net", "SSLConnectJob::OnIOComplete"); |
|
mmenke
2016/04/04 16:45:49
Since we already have a separate event for DoLoop,
ssid
2016/04/05 00:50:13
Makes sense!
|
| int rv = DoLoop(result); |
| if (rv != ERR_IO_PENDING) |
| NotifyDelegateOfCompletion(rv); // Deletes |this|. |
| } |
| int SSLConnectJob::DoLoop(int result) { |
| + TRACE_EVENT0("net", "SSLConnectJob::DoLoop"); |
| DCHECK_NE(next_state_, STATE_NONE); |
| int rv = result; |
| @@ -289,6 +292,7 @@ int SSLConnectJob::DoTunnelConnectComplete(int result) { |
| } |
| int SSLConnectJob::DoSSLConnect() { |
| + TRACE_EVENT0("net", "SSLConnectJob::DoSSLConnect"); |
| // TODO(pkasting): Remove ScopedTracker below once crbug.com/462815 is fixed. |
| tracked_objects::ScopedTracker tracking_profile( |
| FROM_HERE_WITH_EXPLICIT_FUNCTION("462815 SSLConnectJob::DoSSLConnect")); |