terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
SimpleProfiler.cs
Go to the documentation of this file.
1using System;
3using UnityEngine;
4
5// Token: 0x0200005D RID: 93
6public static class SimpleProfiler
7{
8 // Token: 0x060001F1 RID: 497 RVA: 0x00005C60 File Offset: 0x00003E60
9 [Conditional("SIMPLEPROFILER")]
10 public static void Initialise(Type enumType)
11 {
12 if (!true)
13 {
14 }
15 string[] names = Enum.GetNames(enumType);
16 }
17
18 // Token: 0x060001F2 RID: 498 RVA: 0x00005C84 File Offset: 0x00003E84
19 [Conditional("SIMPLEPROFILER")]
20 private static void AllocateSampleFrames(int numberFrames)
21 {
22 }
23
24 // Token: 0x060001F3 RID: 499 RVA: 0x00005C94 File Offset: 0x00003E94
25 [Conditional("SIMPLEPROFILER")]
26 public static void BeginFrame()
27 {
31 }
32
33 // Token: 0x060001F4 RID: 500 RVA: 0x00005CBC File Offset: 0x00003EBC
34 [Conditional("SIMPLEPROFILER")]
35 public static void EndFrame()
36 {
37 if (!true)
38 {
39 }
41 }
42
43 // Token: 0x060001F5 RID: 501 RVA: 0x00005CD4 File Offset: 0x00003ED4
44 [Conditional("SIMPLEPROFILER")]
45 public static void Draw()
46 {
47 }
48
49 // Token: 0x060001F6 RID: 502 RVA: 0x00005CE4 File Offset: 0x00003EE4
50 [Conditional("SIMPLEPROFILER")]
51 public static void BeginSample(int sampleId)
52 {
54 }
55
56 // Token: 0x060001F7 RID: 503 RVA: 0x00005CFC File Offset: 0x00003EFC
57 [Conditional("SIMPLEPROFILER")]
58 public static void EndSample(int sampleId)
59 {
61 }
62
63 // Token: 0x060001F8 RID: 504 RVA: 0x00005D14 File Offset: 0x00003F14
64 [Conditional("SIMPLEPROFILER")]
65 public static void Dump()
66 {
67 }
68
69 // Token: 0x060001F9 RID: 505 RVA: 0x00005D24 File Offset: 0x00003F24
70 [Conditional("SIMPLEPROFILER")]
71 private static void DumpFrameData(int frame)
72 {
76 string text;
77 string text2;
78 Debug.Log(text + " " + text2);
79 string text3;
80 if ((" " == null || " " != null) && (text3 == null || text3 != null) && (" " == null || " " != null))
81 {
84 string text4;
85 if (text4 == null || text4 != null)
86 {
87 string text5;
89 return;
90 }
91 }
93 }
94
95 // Token: 0x060001FA RID: 506 RVA: 0x00005D9C File Offset: 0x00003F9C
96 [Conditional("UNITYPROFILING")]
97 public static void UnityProfileBegin(string begin)
98 {
99 }
100
101 // Token: 0x060001FB RID: 507 RVA: 0x00005DAC File Offset: 0x00003FAC
102 [Conditional("UNITYPROFILING")]
103 public static void UnityProfileEnd(string end)
104 {
105 }
106
107 // Token: 0x060001FC RID: 508 RVA: 0x00005DBC File Offset: 0x00003FBC
108 [Conditional("SIMPLEPROFILER")]
109 public static void OnGUI()
110 {
111 int height = Screen.height;
112 int width = Screen.width;
113 int height2 = Screen.height;
114 if (16968 == 0)
115 {
116 }
117 GUIStyle box = GUI.skin.box;
121 string text2;
122 string text3;
123 string text = text2 + " " + text3;
124 string text4;
125 if ((" " == null || " " != null) && (text4 == null || text4 != null) && (" " == null || " " != null))
126 {
129 string text5;
130 if (text5 == null || text5 != null)
131 {
133 return;
134 }
135 }
136 throw new ArrayTypeMismatchException();
137 }
138
139 // Token: 0x040001E4 RID: 484
140 public static bool DisplayStats;
141
142 // Token: 0x040001E5 RID: 485
143 private static int NextFrame;
144
145 // Token: 0x040001E6 RID: 486
146 private static string[] FrameSampleTypes;
147
148 // Token: 0x040001E7 RID: 487
150
151 // Token: 0x040001E8 RID: 488
153
154 // Token: 0x040001E9 RID: 489
156
157 // Token: 0x040001EA RID: 490
158 private static DateTime FrameTimeStart;
159
160 // Token: 0x040001EB RID: 491
161 private static DateTime FrameTimeEnd;
162
163 // Token: 0x040001EC RID: 492
165
166 // Token: 0x040001ED RID: 493
168}
class f__AnonymousType0<< Count > j__TPar
static void EndFrame()
static void EndSample(int sampleId)
static bool DisplayStats
static void OnGUI()
static int NextFrame
static void Initialise(Type enumType)
static void BeginSample(int sampleId)
static void BeginFrame()
static SimpleProfilerFrameData CurrentFrameData
static void UnityProfileEnd(string end)
static void Dump()
static string[] FrameSampleTypes
static void DumpFrameData(int frame)
static void UnityProfileBegin(string begin)
static DateTime FrameTimeEnd
static void Draw()
static SimpleProfilerFrameData[] FrameData
static DateTime FrameTimeStart
static SimpleProfilerSampleFrame CurrentFrames
static void AllocateSampleFrames(int numberFrames)
static SimpleProfilerSampleFrame AvailableFrames
static SimpleProfilerFrameData LastFrameData
static string[] GetNames(Type enumType)
Definition Enum.cs:299
static void Log(object message)
Definition Debug.cs:51
static void EndArea()
Definition GUILayout.cs:52
static GUISkin skin
Definition GUI.cs:41
static int height
Definition Screen.cs:28
static int width
Definition Screen.cs:17
static DateTime Now
Definition DateTime.cs:530
double TotalMilliseconds
Definition TimeSpan.cs:117
static TimeSpan FromTicks(long value)
Definition TimeSpan.cs:300