Setup entry point + integrated moonworks stuff
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
using System.Diagnostics;
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace Nerfed.Runtime;
|
||||
|
||||
public struct ProfilerScope : IDisposable
|
||||
{
|
||||
public ProfilerScope(string label) {
|
||||
Profiler.BeginSample(label);
|
||||
}
|
||||
|
||||
public void Dispose() {
|
||||
Profiler.EndSample();
|
||||
}
|
||||
}
|
||||
|
||||
public static class Profiler
|
||||
{
|
||||
[Conditional("PROFILER")]
|
||||
public static void BeginSample(string label) {
|
||||
|
||||
}
|
||||
|
||||
[Conditional("PROFILER")]
|
||||
public static void EndSample() {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user