mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:17:35 +00:00
LibJS+LibWebView+WebContent+Ladybird: Output GC-graph into a file
Instead of displaying a massive JSON in stdout, it's more practical to save the GC-graph to a file.
This commit is contained in:
parent
ed1bee222b
commit
57e5abae92
8 changed files with 38 additions and 13 deletions
|
@ -64,7 +64,7 @@ public:
|
|||
};
|
||||
|
||||
void collect_garbage(CollectionType = CollectionType::CollectGarbage, bool print_report = false);
|
||||
void dump_graph();
|
||||
AK::JsonObject dump_graph();
|
||||
|
||||
bool should_collect_on_every_allocation() const { return m_should_collect_on_every_allocation; }
|
||||
void set_should_collect_on_every_allocation(bool b) { m_should_collect_on_every_allocation = b; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue