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

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

Issue 2650943007: Track QuicChromiumClientSession in net/ MemoryDumpProvider (Closed)
Patch Set: address ssid comments Created 3 years, 10 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/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 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 if (http_network_session_dump == nullptr) { 426 if (http_network_session_dump == nullptr) {
427 http_network_session_dump = pmd->CreateAllocatorDump(name); 427 http_network_session_dump = pmd->CreateAllocatorDump(name);
428 normal_socket_pool_manager_->DumpMemoryStats( 428 normal_socket_pool_manager_->DumpMemoryStats(
429 pmd, http_network_session_dump->absolute_name()); 429 pmd, http_network_session_dump->absolute_name());
430 spdy_session_pool_.DumpMemoryStats( 430 spdy_session_pool_.DumpMemoryStats(
431 pmd, http_network_session_dump->absolute_name()); 431 pmd, http_network_session_dump->absolute_name());
432 if (http_stream_factory_) { 432 if (http_stream_factory_) {
433 http_stream_factory_->DumpMemoryStats( 433 http_stream_factory_->DumpMemoryStats(
434 pmd, http_network_session_dump->absolute_name()); 434 pmd, http_network_session_dump->absolute_name());
435 } 435 }
436 quic_stream_factory_.DumpMemoryStats(
437 pmd, http_network_session_dump->absolute_name());
436 } 438 }
437 // Create an empty row under parent's dump so size can be attributed correctly 439 // Create an empty row under parent's dump so size can be attributed correctly
438 // if |this| is shared between URLRequestContexts. 440 // if |this| is shared between URLRequestContexts.
439 base::trace_event::MemoryAllocatorDump* empty_row_dump = 441 base::trace_event::MemoryAllocatorDump* empty_row_dump =
440 pmd->CreateAllocatorDump(base::StringPrintf( 442 pmd->CreateAllocatorDump(base::StringPrintf(
441 "%s/http_network_session", parent_absolute_name.c_str())); 443 "%s/http_network_session", parent_absolute_name.c_str()));
442 pmd->AddOwnershipEdge(empty_row_dump->guid(), 444 pmd->AddOwnershipEdge(empty_row_dump->guid(),
443 http_network_session_dump->guid()); 445 http_network_session_dump->guid());
444 } 446 }
445 447
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 break; 491 break;
490 case base::MemoryState::SUSPENDED: 492 case base::MemoryState::SUSPENDED:
491 // Note: Not supported at present. Fall through. 493 // Note: Not supported at present. Fall through.
492 case base::MemoryState::UNKNOWN: 494 case base::MemoryState::UNKNOWN:
493 NOTREACHED(); 495 NOTREACHED();
494 break; 496 break;
495 } 497 }
496 } 498 }
497 499
498 } // namespace net 500 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | net/quic/chromium/quic_chromium_client_session.h » ('j') | net/quic/chromium/quic_chromium_client_session.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698