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

Side by Side Diff: third_party/WebKit/Source/platform/heap/ThreadState.cpp

Issue 2197923002: Not for landing: Profile Elliott's parsing benchmark Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: temp Created 4 years, 4 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 | « third_party/WebKit/Source/platform/heap/Heap.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 1108 matching lines...) Expand 10 before | Expand all | Expand 10 after
1119 m_heap->heapStats().setMarkedObjectSizeAtLastCompleteSweep(m_heap->heapS tats().markedObjectSize()); 1119 m_heap->heapStats().setMarkedObjectSizeAtLastCompleteSweep(m_heap->heapS tats().markedObjectSize());
1120 1120
1121 DEFINE_STATIC_LOCAL(CustomCountHistogram, objectSizeBeforeGCHistogram, ( "BlinkGC.ObjectSizeBeforeGC", 1, 4 * 1024 * 1024, 50)); 1121 DEFINE_STATIC_LOCAL(CustomCountHistogram, objectSizeBeforeGCHistogram, ( "BlinkGC.ObjectSizeBeforeGC", 1, 4 * 1024 * 1024, 50));
1122 objectSizeBeforeGCHistogram.count(m_heap->heapStats().objectSizeAtLastGC () / 1024); 1122 objectSizeBeforeGCHistogram.count(m_heap->heapStats().objectSizeAtLastGC () / 1024);
1123 DEFINE_STATIC_LOCAL(CustomCountHistogram, objectSizeAfterGCHistogram, (" BlinkGC.ObjectSizeAfterGC", 1, 4 * 1024 * 1024, 50)); 1123 DEFINE_STATIC_LOCAL(CustomCountHistogram, objectSizeAfterGCHistogram, (" BlinkGC.ObjectSizeAfterGC", 1, 4 * 1024 * 1024, 50));
1124 objectSizeAfterGCHistogram.count(m_heap->heapStats().markedObjectSize() / 1024); 1124 objectSizeAfterGCHistogram.count(m_heap->heapStats().markedObjectSize() / 1024);
1125 DEFINE_STATIC_LOCAL(CustomCountHistogram, collectionRateHistogram, ("Bli nkGC.CollectionRate", 1, 100, 20)); 1125 DEFINE_STATIC_LOCAL(CustomCountHistogram, collectionRateHistogram, ("Bli nkGC.CollectionRate", 1, 100, 20));
1126 collectionRateHistogram.count(static_cast<int>(100 * collectionRate)); 1126 collectionRateHistogram.count(static_cast<int>(100 * collectionRate));
1127 DEFINE_STATIC_LOCAL(CustomCountHistogram, timeForSweepHistogram, ("Blink GC.TimeForSweepingAllObjects", 1, 10 * 1000, 50)); 1127 DEFINE_STATIC_LOCAL(CustomCountHistogram, timeForSweepHistogram, ("Blink GC.TimeForSweepingAllObjects", 1, 10 * 1000, 50));
1128 timeForSweepHistogram.count(m_accumulatedSweepingTime); 1128 timeForSweepHistogram.count(m_accumulatedSweepingTime);
1129 fprintf(stderr, "Oilpan sweeping: %.2lf ms\n", m_accumulatedSweepingTime );
1129 1130
1130 1131
1131 #define COUNT_COLLECTION_RATE_HISTOGRAM_BY_GC_REASON(GCReason) \ 1132 #define COUNT_COLLECTION_RATE_HISTOGRAM_BY_GC_REASON(GCReason) \
1132 case BlinkGC::GCReason: { \ 1133 case BlinkGC::GCReason: { \
1133 DEFINE_STATIC_LOCAL(CustomCountHistogram, histogram, \ 1134 DEFINE_STATIC_LOCAL(CustomCountHistogram, histogram, \
1134 ("BlinkGC.CollectionRate_" #GCReason, 1, 100, 20)); \ 1135 ("BlinkGC.CollectionRate_" #GCReason, 1, 100, 20)); \
1135 histogram.count(static_cast<int>(100 * collectionRate)); \ 1136 histogram.count(static_cast<int>(100 * collectionRate)); \
1136 break; \ 1137 break; \
1137 } 1138 }
1138 1139
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
1530 threadDump->AddScalar("dead_count", "objects", totalDeadCount); 1531 threadDump->AddScalar("dead_count", "objects", totalDeadCount);
1531 threadDump->AddScalar("live_size", "bytes", totalLiveSize); 1532 threadDump->AddScalar("live_size", "bytes", totalLiveSize);
1532 threadDump->AddScalar("dead_size", "bytes", totalDeadSize); 1533 threadDump->AddScalar("dead_size", "bytes", totalDeadSize);
1533 1534
1534 base::trace_event::MemoryAllocatorDump* heapsDump = BlinkGCMemoryDumpProvide r::instance()->createMemoryAllocatorDumpForCurrentGC(heapsDumpName); 1535 base::trace_event::MemoryAllocatorDump* heapsDump = BlinkGCMemoryDumpProvide r::instance()->createMemoryAllocatorDumpForCurrentGC(heapsDumpName);
1535 base::trace_event::MemoryAllocatorDump* classesDump = BlinkGCMemoryDumpProvi der::instance()->createMemoryAllocatorDumpForCurrentGC(classesDumpName); 1536 base::trace_event::MemoryAllocatorDump* classesDump = BlinkGCMemoryDumpProvi der::instance()->createMemoryAllocatorDumpForCurrentGC(classesDumpName);
1536 BlinkGCMemoryDumpProvider::instance()->currentProcessMemoryDump()->AddOwners hipEdge(classesDump->guid(), heapsDump->guid()); 1537 BlinkGCMemoryDumpProvider::instance()->currentProcessMemoryDump()->AddOwners hipEdge(classesDump->guid(), heapsDump->guid());
1537 } 1538 }
1538 1539
1539 } // namespace blink 1540 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/heap/Heap.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698