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

Side by Side Diff: net/http/http_network_session.cc

Issue 2565523002: Instrument SpdySessionPool using MemoryDumpProvider (Closed)
Patch Set: Address comments 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 | « no previous file | net/socket/client_socket_handle.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/http/http_network_session.h" 5 #include "net/http/http_network_session.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/atomic_sequence_num.h" 9 #include "base/atomic_sequence_num.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 // This is needed because URLRequestContexts can share an HttpNetworkSession. 392 // This is needed because URLRequestContexts can share an HttpNetworkSession.
393 if (http_network_session_dump != nullptr) { 393 if (http_network_session_dump != nullptr) {
394 pmd->AddOwnershipEdge(pmd->GetAllocatorDump(parent_absolute_name)->guid(), 394 pmd->AddOwnershipEdge(pmd->GetAllocatorDump(parent_absolute_name)->guid(),
395 http_network_session_dump->guid()); 395 http_network_session_dump->guid());
396 396
397 return; 397 return;
398 } 398 }
399 http_network_session_dump = pmd->CreateAllocatorDump(name); 399 http_network_session_dump = pmd->CreateAllocatorDump(name);
400 normal_socket_pool_manager_->DumpMemoryStats( 400 normal_socket_pool_manager_->DumpMemoryStats(
401 pmd, http_network_session_dump->absolute_name()); 401 pmd, http_network_session_dump->absolute_name());
402 spdy_session_pool_.DumpMemoryStats(
403 pmd, http_network_session_dump->absolute_name());
402 pmd->AddOwnershipEdge(pmd->GetAllocatorDump(parent_absolute_name)->guid(), 404 pmd->AddOwnershipEdge(pmd->GetAllocatorDump(parent_absolute_name)->guid(),
403 http_network_session_dump->guid()); 405 http_network_session_dump->guid());
404 } 406 }
405 407
406 ClientSocketPoolManager* HttpNetworkSession::GetSocketPoolManager( 408 ClientSocketPoolManager* HttpNetworkSession::GetSocketPoolManager(
407 SocketPoolType pool_type) { 409 SocketPoolType pool_type) {
408 switch (pool_type) { 410 switch (pool_type) {
409 case NORMAL_SOCKET_POOL: 411 case NORMAL_SOCKET_POOL:
410 return normal_socket_pool_manager_.get(); 412 return normal_socket_pool_manager_.get();
411 case WEBSOCKET_SOCKET_POOL: 413 case WEBSOCKET_SOCKET_POOL:
(...skipping 29 matching lines...) Expand all
441 break; 443 break;
442 case base::MemoryState::SUSPENDED: 444 case base::MemoryState::SUSPENDED:
443 // Note: Not supported at present. Fall through. 445 // Note: Not supported at present. Fall through.
444 case base::MemoryState::UNKNOWN: 446 case base::MemoryState::UNKNOWN:
445 NOTREACHED(); 447 NOTREACHED();
446 break; 448 break;
447 } 449 }
448 } 450 }
449 451
450 } // namespace net 452 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | net/socket/client_socket_handle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698