private unsafe static ProfilerRecorderHandle GetByName_Unsafe(ProfilerCategory category, char *name, int nameLen)
        {
            ProfilerRecorderHandle result;

            ProfilerRecorderHandle.GetByName_Unsafe_Injected(ref category, name, nameLen, out result);
            return(result);
        }
        private static ProfilerRecorderDescription GetDescriptionInternal(ProfilerRecorderHandle handle)
        {
            ProfilerRecorderDescription result;

            ProfilerRecorderHandle.GetDescriptionInternal_Injected(ref handle, out result);
            return(result);
        }
        internal unsafe static ProfilerRecorderHandle GetByName__Unmanaged(ProfilerCategory category, byte *name, int nameLen)
        {
            ProfilerRecorderHandle result;

            ProfilerRecorderHandle.GetByName__Unmanaged_Injected(ref category, name, nameLen, out result);
            return(result);
        }
        internal static ProfilerRecorderHandle GetByName(ProfilerCategory category, string name)
        {
            ProfilerRecorderHandle result;

            ProfilerRecorderHandle.GetByName_Injected(ref category, name, out result);
            return(result);
        }
        public static ProfilerRecorderDescription GetDescription(ProfilerRecorderHandle handle)
        {
            if (!handle.Valid)
            {
                throw new ArgumentException("ProfilerRecorderHandle is not initialized or is not available", nameof(handle));
            }

            return(GetDescriptionInternal(handle));
        }
        public static ProfilerRecorderDescription GetDescription(ProfilerRecorderHandle handle)
        {
            bool flag = !handle.Valid;

            if (flag)
            {
                throw new ArgumentException("ProfilerRecorderHandle is not initialized or is not available", "handle");
            }
            return(ProfilerRecorderHandle.GetDescriptionInternal(handle));
        }
        internal static ProfilerRecorderHandle Get(ProfilerCategory category, string statName)
        {
            bool flag = string.IsNullOrEmpty(statName);

            if (flag)
            {
                throw new ArgumentException("String must be not null or empty", "statName");
            }
            return(ProfilerRecorderHandle.GetByName(category, statName));
        }
 internal unsafe static ProfilerRecorderHandle GetByName(ProfilerCategory category, char *name, int nameLen)
 {
     return(ProfilerRecorderHandle.GetByName_Unsafe(category, name, nameLen));
 }
 private static extern void GetDescriptionInternal_Injected(ref ProfilerRecorderHandle handle, out ProfilerRecorderDescription ret);
 private unsafe static extern void GetByName_Unsafe_Injected(ref ProfilerCategory category, char *name, int nameLen, out ProfilerRecorderHandle ret);
 private unsafe static extern void GetByName__Unmanaged_Injected(ref ProfilerCategory category, byte *name, int nameLen, out ProfilerRecorderHandle ret);
 private static extern void GetByName_Injected(ref ProfilerCategory category, string name, out ProfilerRecorderHandle ret);
 static extern ProfilerRecorderDescription GetDescriptionInternal(ProfilerRecorderHandle handle);
 static extern ProfilerRecorder Create(LowLevel.Unsafe.ProfilerRecorderHandle statHandle, int maxSampleCount, ProfilerRecorderOptions options);
 public ProfilerRecorder(LowLevel.Unsafe.ProfilerRecorderHandle statHandle, int capacity = 1, ProfilerRecorderOptions options = ProfilerRecorderOptions.Default)
 {
     this = Create(statHandle, capacity, options);
 }