RESOLVED FIXED 269521
[JSC] Add option to toggle allocation profiling hooks
https://bugs.webkit.org/show_bug.cgi?id=269521
Summary [JSC] Add option to toggle allocation profiling hooks
David Degazio
Reported 2024-02-15 15:53:01 PST
rdar://123044980 In https://bugs.webkit.org/show_bug.cgi?id=262827 we introduced some preprocessor hooks allowing for WebKit contributors to decorate different points in the WebKit allocators with profiling code. However, it's a bit of a nuisance for this profiling to only be toggle-able at build time. In order to allow switching allocation profiling extensions on or off more conveniently, let's add a new option to JSC reserved for use in allocation profiling extensions. The main value of this option is that it will communicate its value through the additional bytes of g_config reserved in https://bugs.webkit.org/show_bug.cgi?id=266110, so it may be linked against and queried in the libPAS/bmalloc layer via external reference to g_config, unlike other JSC options which are managed at a later stage and have a C++ interface.
Attachments
David Degazio
Comment 1 2024-02-15 16:20:00 PST
EWS
Comment 2 2024-02-16 09:36:33 PST
Committed 274842@main (f76e442c710f): <https://commits.webkit.org/274842@main> Reviewed commits have been landed. Closing PR #24561 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.