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

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

Issue 1670463002: [Oilpan] Unify memory usage reporters of Oilpan (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix nits Created 4 years, 10 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
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 688 matching lines...) Expand 10 before | Expand all | Expand 10 after
699 ASSERT(ThreadState::current()->isInGC()); 699 ASSERT(ThreadState::current()->isInGC());
700 700
701 Heap::reportMemoryUsageForTracing(); 701 Heap::reportMemoryUsageForTracing();
702 702
703 s_objectSizeAtLastGC = s_allocatedObjectSize + s_markedObjectSize; 703 s_objectSizeAtLastGC = s_allocatedObjectSize + s_markedObjectSize;
704 s_partitionAllocSizeAtLastGC = WTF::Partitions::totalSizeOfCommittedPages(); 704 s_partitionAllocSizeAtLastGC = WTF::Partitions::totalSizeOfCommittedPages();
705 s_allocatedObjectSize = 0; 705 s_allocatedObjectSize = 0;
706 s_markedObjectSize = 0; 706 s_markedObjectSize = 0;
707 s_wrapperCountAtLastGC = s_wrapperCount; 707 s_wrapperCountAtLastGC = s_wrapperCount;
708 s_collectedWrapperCount = 0; 708 s_collectedWrapperCount = 0;
709 for (ThreadState* state : ThreadState::attachedThreads())
710 state->resetHeapCounters();
709 } 711 }
710 712
711 CallbackStack* Heap::s_markingStack; 713 CallbackStack* Heap::s_markingStack;
712 CallbackStack* Heap::s_postMarkingCallbackStack; 714 CallbackStack* Heap::s_postMarkingCallbackStack;
713 CallbackStack* Heap::s_globalWeakCallbackStack; 715 CallbackStack* Heap::s_globalWeakCallbackStack;
714 CallbackStack* Heap::s_ephemeronStack; 716 CallbackStack* Heap::s_ephemeronStack;
715 HeapDoesNotContainCache* Heap::s_heapDoesNotContainCache; 717 HeapDoesNotContainCache* Heap::s_heapDoesNotContainCache;
716 bool Heap::s_shutdownCalled = false; 718 bool Heap::s_shutdownCalled = false;
717 FreePagePool* Heap::s_freePagePool; 719 FreePagePool* Heap::s_freePagePool;
718 OrphanedPagePool* Heap::s_orphanedPagePool; 720 OrphanedPagePool* Heap::s_orphanedPagePool;
719 RegionTree* Heap::s_regionTree = nullptr; 721 RegionTree* Heap::s_regionTree = nullptr;
720 size_t Heap::s_allocatedSpace = 0; 722 size_t Heap::s_allocatedSpace = 0;
721 size_t Heap::s_allocatedObjectSize = 0; 723 size_t Heap::s_allocatedObjectSize = 0;
722 size_t Heap::s_objectSizeAtLastGC = 0; 724 size_t Heap::s_objectSizeAtLastGC = 0;
723 size_t Heap::s_markedObjectSize = 0; 725 size_t Heap::s_markedObjectSize = 0;
724 size_t Heap::s_markedObjectSizeAtLastCompleteSweep = 0; 726 size_t Heap::s_markedObjectSizeAtLastCompleteSweep = 0;
725 size_t Heap::s_wrapperCount = 0; 727 size_t Heap::s_wrapperCount = 0;
726 size_t Heap::s_wrapperCountAtLastGC = 0; 728 size_t Heap::s_wrapperCountAtLastGC = 0;
727 size_t Heap::s_collectedWrapperCount = 0; 729 size_t Heap::s_collectedWrapperCount = 0;
728 size_t Heap::s_partitionAllocSizeAtLastGC = 0; 730 size_t Heap::s_partitionAllocSizeAtLastGC = 0;
729 double Heap::s_estimatedMarkingTimePerByte = 0.0; 731 double Heap::s_estimatedMarkingTimePerByte = 0.0;
730 bool Heap::s_isLowEndDevice = false; 732 bool Heap::s_isLowEndDevice = false;
731 #if ENABLE(ASSERT) 733 #if ENABLE(ASSERT)
732 uint16_t Heap::s_gcGeneration = 0; 734 uint16_t Heap::s_gcGeneration = 0;
733 #endif 735 #endif
734 736
735 } // namespace blink 737 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/heap/BUILD.gn ('k') | third_party/WebKit/Source/platform/heap/HeapPage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698