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

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

Issue 2619403002: TEMP DO NOT REVIEW
Patch Set: 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
« no previous file with comments | « no previous file | net/http/http_stream_factory.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 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 const std::string& parent_absolute_name) const { 421 const std::string& parent_absolute_name) const {
422 std::string name = base::StringPrintf("net/http_network_session_%p", this); 422 std::string name = base::StringPrintf("net/http_network_session_%p", this);
423 base::trace_event::MemoryAllocatorDump* http_network_session_dump = 423 base::trace_event::MemoryAllocatorDump* http_network_session_dump =
424 pmd->GetAllocatorDump(name); 424 pmd->GetAllocatorDump(name);
425 if (http_network_session_dump == nullptr) { 425 if (http_network_session_dump == nullptr) {
426 http_network_session_dump = pmd->CreateAllocatorDump(name); 426 http_network_session_dump = pmd->CreateAllocatorDump(name);
427 normal_socket_pool_manager_->DumpMemoryStats( 427 normal_socket_pool_manager_->DumpMemoryStats(
428 pmd, http_network_session_dump->absolute_name()); 428 pmd, http_network_session_dump->absolute_name());
429 spdy_session_pool_.DumpMemoryStats( 429 spdy_session_pool_.DumpMemoryStats(
430 pmd, http_network_session_dump->absolute_name()); 430 pmd, http_network_session_dump->absolute_name());
431 if(http_stream_factory_) {
432 http_stream_factory_->DumpMemoryStats(
433 pmd, http_network_session_dump->absolute_name());
434 }
435
431 } 436 }
432 // Create an empty row under parent's dump so size can be attributed correctly 437 // Create an empty row under parent's dump so size can be attributed correctly
433 // if |this| is shared between URLRequestContexts. 438 // if |this| is shared between URLRequestContexts.
434 base::trace_event::MemoryAllocatorDump* empty_row_dump = 439 base::trace_event::MemoryAllocatorDump* empty_row_dump =
435 pmd->CreateAllocatorDump(base::StringPrintf( 440 pmd->CreateAllocatorDump(base::StringPrintf(
436 "%s/http_network_session", parent_absolute_name.c_str())); 441 "%s/http_network_session", parent_absolute_name.c_str()));
437 pmd->AddOwnershipEdge(empty_row_dump->guid(), 442 pmd->AddOwnershipEdge(empty_row_dump->guid(),
438 http_network_session_dump->guid()); 443 http_network_session_dump->guid());
439 } 444 }
440 445
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 break; 481 break;
477 case base::MemoryState::SUSPENDED: 482 case base::MemoryState::SUSPENDED:
478 // Note: Not supported at present. Fall through. 483 // Note: Not supported at present. Fall through.
479 case base::MemoryState::UNKNOWN: 484 case base::MemoryState::UNKNOWN:
480 NOTREACHED(); 485 NOTREACHED();
481 break; 486 break;
482 } 487 }
483 } 488 }
484 489
485 } // namespace net 490 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | net/http/http_stream_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698