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

Unified Diff: third_party/WebKit/Source/platform/heap/Heap.cpp

Issue 2384213003: reflow comments in platform/heap (Closed)
Patch Set: Created 4 years, 2 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
Index: third_party/WebKit/Source/platform/heap/Heap.cpp
diff --git a/third_party/WebKit/Source/platform/heap/Heap.cpp b/third_party/WebKit/Source/platform/heap/Heap.cpp
index 3376d8c7b68aa802537bdb11f7aac25f99ef3106..6b84004c9a36dc8e2cdc139fa954314a9651f082 100644
--- a/third_party/WebKit/Source/platform/heap/Heap.cpp
+++ b/third_party/WebKit/Source/platform/heap/Heap.cpp
@@ -525,7 +525,14 @@ void ThreadHeap::reportMemoryUsageHistogram() {
void ThreadHeap::reportMemoryUsageForTracing() {
#if PRINT_HEAP_STATS
-// dataLogF("allocatedSpace=%ldMB, allocatedObjectSize=%ldMB, markedObjectSize=%ldMB, partitionAllocSize=%ldMB, wrapperCount=%ld, collectedWrapperCount=%ld\n", ThreadHeap::allocatedSpace() / 1024 / 1024, ThreadHeap::allocatedObjectSize() / 1024 / 1024, ThreadHeap::markedObjectSize() / 1024 / 1024, WTF::Partitions::totalSizeOfCommittedPages() / 1024 / 1024, ThreadHeap::wrapperCount(), ThreadHeap::collectedWrapperCount());
+// dataLogF("allocatedSpace=%ldMB, allocatedObjectSize=%ldMB, "
+// "markedObjectSize=%ldMB, partitionAllocSize=%ldMB, "
+// "wrapperCount=%ld, collectedWrapperCount=%ld\n",
+// ThreadHeap::allocatedSpace() / 1024 / 1024,
+// ThreadHeap::allocatedObjectSize() / 1024 / 1024,
+// ThreadHeap::markedObjectSize() / 1024 / 1024,
+// WTF::Partitions::totalSizeOfCommittedPages() / 1024 / 1024,
+// ThreadHeap::wrapperCount(), ThreadHeap::collectedWrapperCount());
#endif
bool gcTracingEnabled;
@@ -535,7 +542,8 @@ void ThreadHeap::reportMemoryUsageForTracing() {
return;
ThreadHeap& heap = ThreadState::current()->heap();
- // These values are divided by 1024 to avoid overflow in practical cases (TRACE_COUNTER values are 32-bit ints).
+ // These values are divided by 1024 to avoid overflow in practical cases
+ // (TRACE_COUNTER values are 32-bit ints).
// They are capped to INT_MAX just in case.
TRACE_COUNTER1(TRACE_DISABLED_BY_DEFAULT("blink_gc"),
"ThreadHeap::allocatedObjectSizeKB",
« no previous file with comments | « third_party/WebKit/Source/platform/heap/Heap.h ('k') | third_party/WebKit/Source/platform/heap/HeapAllocator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698