mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
LibJS: Use ElapsedTimer::start_new();
This commit is contained in:
parent
8476ad2e18
commit
12024aeda9
Notes:
sideshowbarker
2024-07-18 04:06:52 +09:00
Author: https://github.com/bgianfo
Commit: 12024aeda9
Pull-request: https://github.com/SerenityOS/serenity/pull/9999
Reviewed-by: https://github.com/awesomekling ✅
1 changed files with 1 additions and 2 deletions
|
@ -90,8 +90,7 @@ void Heap::collect_garbage(CollectionType collection_type, bool print_report)
|
|||
perf_event(PERF_EVENT_SIGNPOST, gc_perf_string_id, global_gc_counter++);
|
||||
#endif
|
||||
|
||||
Core::ElapsedTimer collection_measurement_timer;
|
||||
collection_measurement_timer.start();
|
||||
auto collection_measurement_timer = Core::ElapsedTimer::start_new();
|
||||
if (collection_type == CollectionType::CollectGarbage) {
|
||||
if (m_gc_deferrals) {
|
||||
m_should_gc_when_deferral_ends = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue