using System;
using Cpp2IlInjected;
using UnityEngine;

namespace Obi
{
	// Token: 0x02000545 RID: 1349
	[Token(Token = "0x2000545")]
	public class ObiProfiler : MonoBehaviour
	{
		// Token: 0x06002EF8 RID: 12024 RVA: 0x00066F88 File Offset: 0x00065188
		[Token(Token = "0x6002EF8")]
		[Address(RVA = "0xE586C0", Offset = "0xE576C0", VA = "0x180E586C0")]
		public void OnEnable()
		{
			Oni.EnableProfiler(true);
			int maxSystemConcurrency = Oni.GetMaxSystemConcurrency();
			this.numThreads = maxSystemConcurrency;
		}

		// Token: 0x06002EF9 RID: 12025 RVA: 0x00066FAC File Offset: 0x000651AC
		[Token(Token = "0x6002EF9")]
		[Address(RVA = "0xE586B0", Offset = "0xE576B0", VA = "0x180E586B0")]
		public void OnDisable()
		{
			Oni.EnableProfiler(false);
		}

		// Token: 0x06002EFA RID: 12026 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002EFA")]
		[Address(RVA = "0xE586F0", Offset = "0xE576F0", VA = "0x180E586F0")]
		public void OnGUI()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002EFB RID: 12027 RVA: 0x00066FC0 File Offset: 0x000651C0
		[Token(Token = "0x6002EFB")]
		[Address(RVA = "0xE58E10", Offset = "0xE57E10", VA = "0x180E58E10")]
		public ObiProfiler()
		{
			Vector2 zero = Vector2.zero;
			this.scrollPosition = zero;
			this.scrollPosition.y = (float)0;
			this.numThreads = (int)((ulong)1L);
			base..ctor();
		}

		// Token: 0x0400377B RID: 14203
		[FieldOffset(Offset = "0x18")]
		[Token(Token = "0x400377B")]
		public GUISkin skin;

		// Token: 0x0400377C RID: 14204
		[FieldOffset(Offset = "0x20")]
		[Token(Token = "0x400377C")]
		public bool showPercentages;

		// Token: 0x0400377D RID: 14205
		[FieldOffset(Offset = "0x24")]
		[Token(Token = "0x400377D")]
		public int maxVisibleThreads = (int)((ulong)4L);

		// Token: 0x0400377E RID: 14206
		[Token(Token = "0x400377E")]
		public static Oni.ProfileInfo[] info;

		// Token: 0x0400377F RID: 14207
		[Token(Token = "0x400377F")]
		public static double frameDuration;

		// Token: 0x04003780 RID: 14208
		[FieldOffset(Offset = "0x28")]
		[Token(Token = "0x4003780")]
		private float zoom = 1f;

		// Token: 0x04003781 RID: 14209
		[FieldOffset(Offset = "0x2C")]
		[Token(Token = "0x4003781")]
		private Vector2 scrollPosition;

		// Token: 0x04003782 RID: 14210
		[FieldOffset(Offset = "0x34")]
		[Token(Token = "0x4003782")]
		private int numThreads;
	}
}
