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

Side by Side Diff: net/url_request/url_request_context.cc

Issue 2623383005: Log states of JobController in Net MemoryDumpProvider (Closed)
Patch Set: self review Created 3 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/url_request/url_request_context.h" 5 #include "net/url_request/url_request_context.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/debug/alias.h" 8 #include "base/debug/alias.h"
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 name_ = "unknown"; 129 name_ = "unknown";
130 base::trace_event::MemoryAllocatorDump* dump = pmd->CreateAllocatorDump( 130 base::trace_event::MemoryAllocatorDump* dump = pmd->CreateAllocatorDump(
131 base::StringPrintf("net/url_request_context/%s_%p", name_.c_str(), this)); 131 base::StringPrintf("net/url_request_context/%s_%p", name_.c_str(), this));
132 dump->AddScalar(base::trace_event::MemoryAllocatorDump::kNameObjectCount, 132 dump->AddScalar(base::trace_event::MemoryAllocatorDump::kNameObjectCount,
133 base::trace_event::MemoryAllocatorDump::kUnitsObjects, 133 base::trace_event::MemoryAllocatorDump::kUnitsObjects,
134 url_requests_->size()); 134 url_requests_->size());
135 HttpTransactionFactory* transaction_factory = http_transaction_factory(); 135 HttpTransactionFactory* transaction_factory = http_transaction_factory();
136 if (transaction_factory) { 136 if (transaction_factory) {
137 HttpNetworkSession* network_session = transaction_factory->GetSession(); 137 HttpNetworkSession* network_session = transaction_factory->GetSession();
138 if (network_session) 138 if (network_session)
139 network_session->DumpMemoryStats(pmd, dump->absolute_name()); 139 network_session->DumpMemoryStats(pmd, args, dump->absolute_name());
140 } 140 }
141 SSLClientSocketImpl::DumpSSLClientSessionMemoryStats(pmd); 141 SSLClientSocketImpl::DumpSSLClientSessionMemoryStats(pmd);
142 if (sdch_manager_) 142 if (sdch_manager_)
143 sdch_manager_->DumpMemoryStats(pmd, dump->absolute_name()); 143 sdch_manager_->DumpMemoryStats(pmd, dump->absolute_name());
144 return true; 144 return true;
145 } 145 }
146 146
147 } // namespace net 147 } // namespace net
OLDNEW
« net/http/http_stream_factory_impl.cc ('K') | « net/http/http_stream_factory_impl_job_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698