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

Unified Diff: content/common/host_discardable_shared_memory_manager.cc

Issue 1028853002: content: Crash key and trace counter cleanup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/child/child_discardable_shared_memory_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/host_discardable_shared_memory_manager.cc
diff --git a/content/common/host_discardable_shared_memory_manager.cc b/content/common/host_discardable_shared_memory_manager.cc
index c4fea8de54e0c7d3b2e2ab09e8485a2103a39756..49c24f812424dac4e3c16efe9eda29d1355126a2 100644
--- a/content/common/host_discardable_shared_memory_manager.cc
+++ b/content/common/host_discardable_shared_memory_manager.cc
@@ -398,11 +398,12 @@ void HostDiscardableSharedMemoryManager::ReleaseMemory(
void HostDiscardableSharedMemoryManager::BytesAllocatedChanged(
size_t new_bytes_allocated) const {
- TRACE_COUNTER_ID1("renderer_host", "TotalDiscardableMemoryUsage", this,
- new_bytes_allocated);
+ TRACE_COUNTER1("renderer_host", "TotalDiscardableMemoryUsage",
+ new_bytes_allocated);
- static const char kTotalDiscardableMemoryUsageKey[] = "total-dm-usage";
- base::debug::SetCrashKeyValue(kTotalDiscardableMemoryUsageKey,
+ static const char kTotalDiscardableMemoryAllocatedKey[] =
+ "total-discardable-memory-allocated";
+ base::debug::SetCrashKeyValue(kTotalDiscardableMemoryAllocatedKey,
base::Uint64ToString(new_bytes_allocated));
}
« no previous file with comments | « content/child/child_discardable_shared_memory_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698