mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
Instrumentation
This commit is contained in:
@@ -28,7 +28,7 @@ namespace GlitchyEngine.Debug
|
||||
{
|
||||
scope:mixin PerformanceTimer()
|
||||
}
|
||||
|
||||
|
||||
#if !GE_PROFILE
|
||||
[SkipCall]
|
||||
#endif
|
||||
@@ -36,6 +36,40 @@ namespace GlitchyEngine.Debug
|
||||
{
|
||||
scope:mixin PerformanceTimer(scopeName)
|
||||
}
|
||||
|
||||
// Extension
|
||||
|
||||
#if !GE_PROFILE_RENDERER
|
||||
[SkipCall]
|
||||
#endif
|
||||
public static mixin ProfileRendererFunction()
|
||||
{
|
||||
scope:mixin PerformanceTimer()
|
||||
}
|
||||
|
||||
#if !GE_PROFILE_RENDERER
|
||||
[SkipCall]
|
||||
#endif
|
||||
public static mixin ProfileRendererScope(char8* scopeName)
|
||||
{
|
||||
scope:mixin PerformanceTimer(scopeName)
|
||||
}
|
||||
|
||||
#if !GE_PROFILE_RESOURCES
|
||||
[SkipCall]
|
||||
#endif
|
||||
public static mixin ProfileResourceFunction()
|
||||
{
|
||||
scope:mixin PerformanceTimer()
|
||||
}
|
||||
|
||||
#if !GE_PROFILE_RESOURCES
|
||||
[SkipCall]
|
||||
#endif
|
||||
public static mixin ProfileResourceScope(char8* scopeName)
|
||||
{
|
||||
scope:mixin PerformanceTimer(scopeName)
|
||||
}
|
||||
}
|
||||
|
||||
class PerformanceTimer
|
||||
|
||||
Reference in New Issue
Block a user