mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-29 21:57:18 +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: 08ae305dc5
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/SearchEngine.h>
|
||||||
#include <LibWebView/URL.h>
|
#include <LibWebView/URL.h>
|
||||||
#include <LibWebView/UserAgent.h>
|
#include <LibWebView/UserAgent.h>
|
||||||
|
#include <LibWebView/ViewImplementation.h>
|
||||||
|
|
||||||
#import <Application/ApplicationDelegate.h>
|
#import <Application/ApplicationDelegate.h>
|
||||||
#import <Interface/LadybirdWebView.h>
|
#import <Interface/LadybirdWebView.h>
|
||||||
|
@ -359,7 +360,9 @@ static NSString* const TOOLBAR_TAB_OVERVIEW_IDENTIFIER = @"ToolbarTabOverviewIde
|
||||||
|
|
||||||
- (void)dumpGCGraph:(id)sender
|
- (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
|
- (void)clearCache:(id)sender
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue