| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/browser/browser_about_handler.h" | 5 #include "chrome/browser/browser_about_handler.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 765 outputs->clear(); | 765 outputs->clear(); |
| 766 | 766 |
| 767 // Populate the collector with stats from the local browser process | 767 // Populate the collector with stats from the local browser process |
| 768 // and send off requests to all the renderer processes. | 768 // and send off requests to all the renderer processes. |
| 769 char buffer[1024 * 32]; | 769 char buffer[1024 * 32]; |
| 770 MallocExtension::instance()->GetStats(buffer, sizeof(buffer)); | 770 MallocExtension::instance()->GetStats(buffer, sizeof(buffer)); |
| 771 std::string browser("Browser"); | 771 std::string browser("Browser"); |
| 772 AboutTcmallocOutputs::GetInstance()->SetOutput(browser, buffer); | 772 AboutTcmallocOutputs::GetInstance()->SetOutput(browser, buffer); |
| 773 RenderProcessHost::iterator it(RenderProcessHost::AllHostsIterator()); | 773 RenderProcessHost::iterator it(RenderProcessHost::AllHostsIterator()); |
| 774 while (!it.IsAtEnd()) { | 774 while (!it.IsAtEnd()) { |
| 775 it.GetCurrentValue()->Send(new ViewMsg_GetRendererTcmalloc); | 775 it.GetCurrentValue()->Send(new ChromeViewMsg_GetRendererTcmalloc); |
| 776 it.Advance(); | 776 it.Advance(); |
| 777 } | 777 } |
| 778 | 778 |
| 779 return data; | 779 return data; |
| 780 } | 780 } |
| 781 #endif | 781 #endif |
| 782 | 782 |
| 783 std::string AboutHistograms(const std::string& query) { | 783 std::string AboutHistograms(const std::string& query) { |
| 784 TimeDelta wait_time = TimeDelta::FromMilliseconds(10000); | 784 TimeDelta wait_time = TimeDelta::FromMilliseconds(10000); |
| 785 | 785 |
| (...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1527 return false; | 1527 return false; |
| 1528 } | 1528 } |
| 1529 | 1529 |
| 1530 std::vector<std::string> ChromePaths() { | 1530 std::vector<std::string> ChromePaths() { |
| 1531 std::vector<std::string> paths; | 1531 std::vector<std::string> paths; |
| 1532 paths.reserve(arraysize(kChromePaths)); | 1532 paths.reserve(arraysize(kChromePaths)); |
| 1533 for (size_t i = 0; i < arraysize(kChromePaths); i++) | 1533 for (size_t i = 0; i < arraysize(kChromePaths); i++) |
| 1534 paths.push_back(kChromePaths[i]); | 1534 paths.push_back(kChromePaths[i]); |
| 1535 return paths; | 1535 return paths; |
| 1536 } | 1536 } |
| OLD | NEW |