Changeset 294377 in webkit
- Timestamp:
- May 17, 2022, 6:42:26 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/page/win/ResourceUsageThreadWin.cpp
r278185 r294377 119 119 void ResourceUsageThread::platformCollectMemoryData(JSC::VM* vm, ResourceUsageData& data) 120 120 { 121 data.totalDirtySize = memoryUsage();121 auto usage = data.totalDirtySize = memoryUsage(); 122 122 123 123 size_t currentGCHeapCapacity = vm->heap.blockBytesAllocated(); … … 130 130 data.categories[MemoryCategory::GCOwned].externalSize = currentGCOwnedExternal; 131 131 132 usage -= currentGCHeapCapacity; 133 // Following ResourceUsageThreadCocoa implementation 134 auto currentGCOwnedGenerallyInMalloc = currentGCOwnedExtra - currentGCOwnedExternal; 135 if (currentGCOwnedGenerallyInMalloc < usage) 136 usage -= currentGCOwnedGenerallyInMalloc; 137 138 data.categories[MemoryCategory::LibcMalloc].dirtySize = usage; 139 132 140 data.totalExternalSize = currentGCOwnedExternal; 133 141
Note:
See TracChangeset
for help on using the changeset viewer.