| 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 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 606 ASSERT(!sweepForbidden()); | 606 ASSERT(!sweepForbidden()); |
| 607 | 607 |
| 608 if ((gcType == BlinkGC::V8MajorGC && shouldForceMemoryPressureGC()) | 608 if ((gcType == BlinkGC::V8MajorGC && shouldForceMemoryPressureGC()) |
| 609 || shouldScheduleV8FollowupGC()) { | 609 || shouldScheduleV8FollowupGC()) { |
| 610 #if PRINT_HEAP_STATS | 610 #if PRINT_HEAP_STATS |
| 611 dataLogF("Scheduled PreciseGC\n"); | 611 dataLogF("Scheduled PreciseGC\n"); |
| 612 #endif | 612 #endif |
| 613 schedulePreciseGC(); | 613 schedulePreciseGC(); |
| 614 return; | 614 return; |
| 615 } | 615 } |
| 616 if (gcType == BlinkGC::V8MajorGC) { | 616 if (gcType == BlinkGC::V8MajorGC && shouldScheduleIdleGC()) { |
| 617 #if PRINT_HEAP_STATS | 617 #if PRINT_HEAP_STATS |
| 618 dataLogF("Scheduled IdleGC\n"); | 618 dataLogF("Scheduled IdleGC\n"); |
| 619 #endif | 619 #endif |
| 620 scheduleIdleGC(); | 620 scheduleIdleGC(); |
| 621 return; | 621 return; |
| 622 } | 622 } |
| 623 } | 623 } |
| 624 | 624 |
| 625 void ThreadState::willStartV8GC(BlinkGC::V8GCType gcType) | 625 void ThreadState::willStartV8GC(BlinkGC::V8GCType gcType) |
| 626 { | 626 { |
| (...skipping 911 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1538 threadDump->addScalar("dead_count", "objects", totalDeadCount); | 1538 threadDump->addScalar("dead_count", "objects", totalDeadCount); |
| 1539 threadDump->addScalar("live_size", "bytes", totalLiveSize); | 1539 threadDump->addScalar("live_size", "bytes", totalLiveSize); |
| 1540 threadDump->addScalar("dead_size", "bytes", totalDeadSize); | 1540 threadDump->addScalar("dead_size", "bytes", totalDeadSize); |
| 1541 | 1541 |
| 1542 WebMemoryAllocatorDump* heapsDump = BlinkGCMemoryDumpProvider::instance()->c
reateMemoryAllocatorDumpForCurrentGC(heapsDumpName); | 1542 WebMemoryAllocatorDump* heapsDump = BlinkGCMemoryDumpProvider::instance()->c
reateMemoryAllocatorDumpForCurrentGC(heapsDumpName); |
| 1543 WebMemoryAllocatorDump* classesDump = BlinkGCMemoryDumpProvider::instance()-
>createMemoryAllocatorDumpForCurrentGC(classesDumpName); | 1543 WebMemoryAllocatorDump* classesDump = BlinkGCMemoryDumpProvider::instance()-
>createMemoryAllocatorDumpForCurrentGC(classesDumpName); |
| 1544 BlinkGCMemoryDumpProvider::instance()->currentProcessMemoryDump()->addOwners
hipEdge(classesDump->guid(), heapsDump->guid()); | 1544 BlinkGCMemoryDumpProvider::instance()->currentProcessMemoryDump()->addOwners
hipEdge(classesDump->guid(), heapsDump->guid()); |
| 1545 } | 1545 } |
| 1546 | 1546 |
| 1547 } // namespace blink | 1547 } // namespace blink |
| OLD | NEW |