| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |