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

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

Issue 2540233002: Instrument SourceStream using MemoryDumpProvider
Patch Set: Rebased Created 4 years 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
« no previous file with comments | « net/url_request/url_request.cc ('k') | net/url_request/url_request_job.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 dump->AddScalar(base::trace_event::MemoryAllocatorDump::kNameObjectCount, 128 dump->AddScalar(base::trace_event::MemoryAllocatorDump::kNameObjectCount,
129 base::trace_event::MemoryAllocatorDump::kUnitsObjects, 129 base::trace_event::MemoryAllocatorDump::kUnitsObjects,
130 url_requests_->size()); 130 url_requests_->size());
131 HttpTransactionFactory* transaction_factory = http_transaction_factory(); 131 HttpTransactionFactory* transaction_factory = http_transaction_factory();
132 if (transaction_factory) { 132 if (transaction_factory) {
133 HttpNetworkSession* network_session = transaction_factory->GetSession(); 133 HttpNetworkSession* network_session = transaction_factory->GetSession();
134 if (network_session) 134 if (network_session)
135 network_session->DumpMemoryStats(pmd, dump->absolute_name()); 135 network_session->DumpMemoryStats(pmd, dump->absolute_name());
136 } 136 }
137 SSLClientSocketImpl::DumpSSLClientSessionMemoryStats(pmd); 137 SSLClientSocketImpl::DumpSSLClientSessionMemoryStats(pmd);
138 for (const auto* url_request : *url_requests_.get()) {
139 url_request->DumpMemoryStats(pmd, dump->absolute_name());
140 }
138 return true; 141 return true;
139 } 142 }
140 143
141 } // namespace net 144 } // namespace net
OLDNEW
« no previous file with comments | « net/url_request/url_request.cc ('k') | net/url_request/url_request_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698