fix: Removes profiling. Streamlines core tick count. (#1948)
### Summary - Removes `Profiling` - Recommend using Visual Studio Performance Profiler, [dotnet-trace](https://learn.microsoft.com/en-us/dotnet/core/diagnostics/dotnet-trace) or [JetBrains dotTrace](https://www.jetbrains.com/profiler/) - Cleans up the core tick count, sampling, etc.
This commit is contained in:
parent
65bc264402
commit
2e6ddcd31a
14 changed files with 80 additions and 949 deletions
|
|
@ -136,9 +136,6 @@ public partial class Timer
|
|||
{
|
||||
var finished = timer.Count != 0 && timer.Index + 1 >= timer.Count;
|
||||
|
||||
var prof = timer.GetProfile();
|
||||
prof?.Start();
|
||||
|
||||
// Stop the timer from running so that way if Start() is called in OnTick, the timer will be started.
|
||||
if (finished)
|
||||
{
|
||||
|
|
@ -149,7 +146,6 @@ public partial class Timer
|
|||
var version = timer.Version;
|
||||
|
||||
timer.OnTick();
|
||||
prof?.Finish();
|
||||
|
||||
// Starting doesn't change the timer version, so we need to check if it's finished and if it's still running.
|
||||
if (timer.Version != version || finished && timer.Running)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue