mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-25 03:24:46 +00:00
Revamp Profiler2 to make it more usable.
Features include new graphs to compare runtime of functions and runtimes across reports, as well as new profiling functions that only profile spikes. This was SVN commit r18423.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2015 Wildfire Games.
|
||||
/* Copyright (C) 2016 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@@ -46,7 +46,7 @@ void GCSliceCallbackHook(JSRuntime* UNUSED(rt), JS::GCProgress progress, const J
|
||||
{
|
||||
if (CProfileManager::IsInitialised() && ThreadUtil::IsMainThread())
|
||||
g_Profiler.Stop();
|
||||
g_Profiler2.RecordRegionLeave("GCSlice");
|
||||
g_Profiler2.RecordRegionLeave();
|
||||
}
|
||||
else if (progress == JS::GC_CYCLE_BEGIN)
|
||||
{
|
||||
@@ -58,7 +58,7 @@ void GCSliceCallbackHook(JSRuntime* UNUSED(rt), JS::GCProgress progress, const J
|
||||
{
|
||||
if (CProfileManager::IsInitialised() && ThreadUtil::IsMainThread())
|
||||
g_Profiler.Stop();
|
||||
g_Profiler2.RecordRegionLeave("GCSlice");
|
||||
g_Profiler2.RecordRegionLeave();
|
||||
}
|
||||
|
||||
// The following code can be used to print some information aobut garbage collection
|
||||
|
||||
Reference in New Issue
Block a user