Bug 270592

Summary: Profile allocations and track allocation mode in libPAS
Product: WebKit Reporter: David Degazio <d_degazio>
Component: bmallocAssignee: David Degazio <d_degazio>
Status: RESOLVED FIXED    
Severity: Normal CC: ggaren, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=271487

Description David Degazio 2024-03-06 12:48:12 PST
rdar://122419407

We already have hooks at the bmalloc/WTF level to profile allocations, and categorize these allocations via compactible (can be referenced by a compact pointer) and a variety of non-compactible (e.g. JSCell, non-JSCell, in-Gigacage, etc) discriminators. Up until now we haven't added much profiling to allocation sites in libPAS, where the bulk of the allocation logic occurs, but it seems useful to be able to not only measure the amount of times we fastMalloc something, but also whether it hits the fast or slow path of a libPAS local allocator, for example.
Comment 1 David Degazio 2024-03-06 14:25:45 PST
Pull request: https://github.com/WebKit/WebKit/pull/25551
Comment 2 EWS 2024-03-07 16:06:55 PST
Committed 275812@main (ce0c25336f53): <https://commits.webkit.org/275812@main>

Reviewed commits have been landed. Closing PR #25551 and removing active labels.