using System;
using Cpp2IlInjected;
using UnityEngine;

namespace Obi
{
	// Token: 0x020004ED RID: 1261
	[Token(Token = "0x20004ED")]
	public class ObiProfiler : MonoBehaviour
	{
		// Token: 0x06002C2F RID: 11311 RVA: 0x0005FCF4 File Offset: 0x0005DEF4
		[Token(Token = "0x6002C2F")]
		[Address(RVA = "0xD27550", Offset = "0xD26350", VA = "0x180D27550")]
		public void OnEnable()
		{
			Oni.EnableProfiler(true);
			int maxSystemConcurrency = Oni.GetMaxSystemConcurrency();
			this.numThreads = maxSystemConcurrency;
		}

		// Token: 0x06002C30 RID: 11312 RVA: 0x0005FD18 File Offset: 0x0005DF18
		[Token(Token = "0x6002C30")]
		[Address(RVA = "0xD27540", Offset = "0xD26340", VA = "0x180D27540")]
		public void OnDisable()
		{
			Oni.EnableProfiler(false);
		}

		// Token: 0x06002C31 RID: 11313 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002C31")]
		[Address(RVA = "0xD27580", Offset = "0xD26380", VA = "0x180D27580")]
		public void OnGUI()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002C32 RID: 11314 RVA: 0x0005FD2C File Offset: 0x0005DF2C
		[Token(Token = "0x6002C32")]
		[Address(RVA = "0xD27CA0", Offset = "0xD26AA0", VA = "0x180D27CA0")]
		public ObiProfiler()
		{
			Vector2 zero = Vector2.zero;
			this.scrollPosition = zero;
			this.scrollPosition.y = (float)0;
			this.numThreads = (int)((ulong)1L);
			base..ctor();
		}

		// Token: 0x04003491 RID: 13457
		[FieldOffset(Offset = "0x18")]
		[Token(Token = "0x4003491")]
		public GUISkin skin;

		// Token: 0x04003492 RID: 13458
		[FieldOffset(Offset = "0x20")]
		[Token(Token = "0x4003492")]
		public bool showPercentages;

		// Token: 0x04003493 RID: 13459
		[FieldOffset(Offset = "0x24")]
		[Token(Token = "0x4003493")]
		public int maxVisibleThreads = (int)((ulong)4L);

		// Token: 0x04003494 RID: 13460
		[Token(Token = "0x4003494")]
		public static Oni.ProfileInfo[] info;

		// Token: 0x04003495 RID: 13461
		[Token(Token = "0x4003495")]
		public static double frameDuration;

		// Token: 0x04003496 RID: 13462
		[FieldOffset(Offset = "0x28")]
		[Token(Token = "0x4003496")]
		private float zoom = 1f;

		// Token: 0x04003497 RID: 13463
		[FieldOffset(Offset = "0x2C")]
		[Token(Token = "0x4003497")]
		private Vector2 scrollPosition;

		// Token: 0x04003498 RID: 13464
		[FieldOffset(Offset = "0x34")]
		[Token(Token = "0x4003498")]
		private int numThreads;
	}
}
