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

Side by Side Diff: chrome/common/crash_keys.cc

Issue 981403002: content: Release all free discardable memory when idle. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: disable DCHECK Created 5 years, 9 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 | content/child/child_discardable_shared_memory_manager.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/common/crash_keys.h" 5 #include "chrome/common/crash_keys.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/format_macros.h" 8 #include "base/format_macros.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/strings/string_split.h" 10 #include "base/strings/string_split.h"
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 { kGPUVertexShaderVersion, kSmallSize }, 140 { kGPUVertexShaderVersion, kSmallSize },
141 #if defined(OS_MACOSX) 141 #if defined(OS_MACOSX)
142 { kGPUGLVersion, kSmallSize }, 142 { kGPUGLVersion, kSmallSize },
143 #elif defined(OS_POSIX) 143 #elif defined(OS_POSIX)
144 { kGPUVendor, kSmallSize }, 144 { kGPUVendor, kSmallSize },
145 { kGPURenderer, kSmallSize }, 145 { kGPURenderer, kSmallSize },
146 #endif 146 #endif
147 147
148 // base/: 148 // base/:
149 { "dm-usage", kSmallSize }, 149 { "dm-usage", kSmallSize },
150 { "dm-usage-free", kSmallSize },
150 { "total-dm-usage", kSmallSize }, 151 { "total-dm-usage", kSmallSize },
151 // content/: 152 // content/:
152 { kFontKeyName, kSmallSize}, 153 { kFontKeyName, kSmallSize},
153 { "ppapi_path", kMediumSize }, 154 { "ppapi_path", kMediumSize },
154 { "subresource_url", kLargeSize }, 155 { "subresource_url", kLargeSize },
155 #if defined(OS_CHROMEOS) 156 #if defined(OS_CHROMEOS)
156 { kNumberOfUsers, kSmallSize }, 157 { kNumberOfUsers, kSmallSize },
157 #endif 158 #endif
158 #if defined(OS_MACOSX) 159 #if defined(OS_MACOSX)
159 { mac::kFirstNSException, kMediumSize }, 160 { mac::kFirstNSException, kMediumSize },
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 } 404 }
404 405
405 ScopedPrinterInfo::~ScopedPrinterInfo() { 406 ScopedPrinterInfo::~ScopedPrinterInfo() {
406 for (size_t i = 0; i < kPrinterInfoCount; ++i) { 407 for (size_t i = 0; i < kPrinterInfoCount; ++i) {
407 std::string key = base::StringPrintf(kPrinterInfo, i + 1); 408 std::string key = base::StringPrintf(kPrinterInfo, i + 1);
408 base::debug::ClearCrashKey(key); 409 base::debug::ClearCrashKey(key);
409 } 410 }
410 } 411 }
411 412
412 } // namespace crash_keys 413 } // namespace crash_keys
OLDNEW
« no previous file with comments | « no previous file | content/child/child_discardable_shared_memory_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698