mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-24 16:40:21 +00:00
UI/AppKit: Make "Dump GC Graph" menu action actually work again
This was originally implemented as a debug request, but later changed. The Qt UI already did the right thing, so just copy the logic over.
This commit is contained in:
parent
68f58b23ce
commit
08ae305dc5
Notes:
github-actions[bot]
2024-11-10 18:14:22 +00:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/08ae305dc5a Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2268
1 changed files with 4 additions and 1 deletions
|
@ -9,6 +9,7 @@
|
|||
#include <LibWebView/SearchEngine.h>
|
||||
#include <LibWebView/URL.h>
|
||||
#include <LibWebView/UserAgent.h>
|
||||
#include <LibWebView/ViewImplementation.h>
|
||||
|
||||
#import <Application/ApplicationDelegate.h>
|
||||
#import <Interface/LadybirdWebView.h>
|
||||
|
@ -359,7 +360,9 @@ static NSString* const TOOLBAR_TAB_OVERVIEW_IDENTIFIER = @"ToolbarTabOverviewIde
|
|||
|
||||
- (void)dumpGCGraph:(id)sender
|
||||
{
|
||||
[self debugRequest:"dump-gc-graph" argument:""];
|
||||
auto& view_impl = [[[self tab] web_view] view];
|
||||
auto gc_graph_path = view_impl.dump_gc_graph();
|
||||
warnln("\033[33;1mDumped GC-graph into {}\033[0m", gc_graph_path);
|
||||
}
|
||||
|
||||
- (void)clearCache:(id)sender
|
||||
|
|
Loading…
Reference in a new issue