57 lines
1.6 KiB
C#
57 lines
1.6 KiB
C#
using System;
|
|
using System.Diagnostics;
|
|
using System.Runtime.CompilerServices;
|
|
using UnityEngine.Scripting;
|
|
|
|
namespace UnityEngine.Profiling
|
|
{
|
|
// Token: 0x020000FD RID: 253
|
|
[UsedByNativeCode]
|
|
public sealed class CustomSampler : Sampler
|
|
{
|
|
// Token: 0x06001230 RID: 4656 RVA: 0x00018300 File Offset: 0x00016500
|
|
internal CustomSampler()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06001231 RID: 4657 RVA: 0x0001830C File Offset: 0x0001650C
|
|
public static CustomSampler Create(string name)
|
|
{
|
|
CustomSampler customSampler = CustomSampler.CreateInternal(name);
|
|
return customSampler ?? CustomSampler.s_InvalidCustomSampler;
|
|
}
|
|
|
|
// Token: 0x06001232 RID: 4658
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private static extern CustomSampler CreateInternal(string name);
|
|
|
|
// Token: 0x06001233 RID: 4659
|
|
[Conditional("ENABLE_PROFILER")]
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
public extern void Begin();
|
|
|
|
// Token: 0x06001234 RID: 4660 RVA: 0x00018338 File Offset: 0x00016538
|
|
[Conditional("ENABLE_PROFILER")]
|
|
public void Begin(Object targetObject)
|
|
{
|
|
this.BeginWithObject(targetObject);
|
|
}
|
|
|
|
// Token: 0x06001235 RID: 4661
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void BeginWithObject(Object targetObject);
|
|
|
|
// Token: 0x06001236 RID: 4662
|
|
[Conditional("ENABLE_PROFILER")]
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
public extern void End();
|
|
|
|
// Token: 0x04000248 RID: 584
|
|
internal static CustomSampler s_InvalidCustomSampler = new CustomSampler();
|
|
}
|
|
}
|