[webkit-changes] [WebKit/WebKit] 53acbb: Allow custom profiling of JS and non-JS allocation...
Commit Queue
noreply at github.com
Sat Oct 7 00:25:13 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 53acbba3ab24d8ee1ddc5f488e7941ea3cf3ebfe
https://github.com/WebKit/WebKit/commit/53acbba3ab24d8ee1ddc5f488e7941ea3cf3ebfe
Author: David Degazio <d_degazio at apple.com>
Date: 2023-10-07 (Sat, 07 Oct 2023)
Changed paths:
M Source/WTF/wtf/FastMalloc.cpp
M Source/WTF/wtf/Gigacage.cpp
M Source/bmalloc/CMakeLists.txt
M Source/bmalloc/bmalloc.xcodeproj/project.pbxproj
A Source/bmalloc/bmalloc/AllocationCounts.h
M Source/bmalloc/bmalloc/BCompiler.h
M Source/bmalloc/bmalloc/IsoHeap.cpp
M Source/bmalloc/bmalloc/bmalloc.h
Log Message:
-----------
Allow custom profiling of JS and non-JS allocation counts
https://bugs.webkit.org/show_bug.cgi?id=262827
rdar://114841891
Reviewed by Mark Lam.
Adds macros to FastMalloc, IsoHeap, and Gigacage malloc functions to allow
for custom profiling code around different kinds of mallocs. Profiling for
different categories of mallocs can be provided by defining certain macros
(see AllocationCounts.h for more information).
* Source/WTF/wtf/Gigacage.cpp:
(Gigacage::tryAlignedMalloc):
(Gigacage::tryMalloc):
(Gigacage::tryZeroedMalloc):
(Gigacage::tryRealloc):
* Source/bmalloc/CMakeLists.txt:
* Source/bmalloc/bmalloc.xcodeproj/project.pbxproj:
* Source/bmalloc/bmalloc/AllocationCounts.cpp: Added.
* Source/bmalloc/bmalloc/AllocationCounts.h: Added.
* Source/bmalloc/bmalloc/BCompiler.h:
* Source/bmalloc/bmalloc/IsoHeap.cpp:
(bmalloc::api::isoAllocate):
(bmalloc::api::isoTryAllocate):
* Source/bmalloc/bmalloc/bmalloc.h:
Canonical link: https://commits.webkit.org/269033@main
More information about the webkit-changes
mailing list