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

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

Issue 1782833005: Add threshold for V8Followup-IdleGC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | 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 595 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698