mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-02 01:08:48 +00:00
Ladybird+LibWebView: Add -P/--enable-callgrind-profiling option
This adds a -P option to run Ladybird under callgrind. It starts with instrumentation disabled. To start capturing a profile (once Ladybird has launched) run `callgrind_control -i on` and to stop it again run `callgrind_control -i off`. P.s. This is pretty much stolen from Andreas (and is based on the patch everyone [that wants a profile] have been manually applying).
This commit is contained in:
parent
5db1eb9961
commit
0329ddf46a
Notes:
sideshowbarker
2024-07-16 23:23:26 +09:00
Author: https://github.com/MacDue
Commit: 0329ddf46a
Pull-request: https://github.com/SerenityOS/serenity/pull/18383
12 changed files with 52 additions and 26 deletions
|
@ -59,7 +59,7 @@ void OutOfProcessWebView::handle_web_content_process_crash()
|
|||
load_html(builder.to_deprecated_string(), m_url);
|
||||
}
|
||||
|
||||
void OutOfProcessWebView::create_client()
|
||||
void OutOfProcessWebView::create_client(EnableCallgrindProfiling)
|
||||
{
|
||||
m_client_state = {};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue