mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:17:45 +00:00
Ladybird, WebContent: Add option in debug menu to output GC graph dump
This commit is contained in:
parent
0ff29349e6
commit
24edb7c97f
2 changed files with 10 additions and 0 deletions
|
@ -410,6 +410,10 @@ void ConnectionFromClient::debug_request(DeprecatedString const& request, Deprec
|
|||
Web::Bindings::main_thread_vm().heap().collect_garbage(JS::Heap::CollectionType::CollectGarbage, true);
|
||||
}
|
||||
|
||||
if (request == "dump-gc-graph") {
|
||||
Web::Bindings::main_thread_vm().heap().dump_graph();
|
||||
}
|
||||
|
||||
if (request == "set-line-box-borders") {
|
||||
bool state = argument == "on";
|
||||
m_page_host->set_should_show_line_box_borders(state);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue