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
MemoryProfiler.cs
Go to the documentation of this file.
1using System;
8
10{
11 // Token: 0x020000F1 RID: 241
12 [NativeHeader("Modules/Profiler/Runtime/MemorySnapshotManager.h")]
13 public sealed class MemoryProfiler
14 {
15 // Token: 0x0600051C RID: 1308 RVA: 0x00009390 File Offset: 0x00007590
17 private static byte[] PrepareMetadata()
18 {
19 }
20
21 // Token: 0x0600051D RID: 1309 RVA: 0x000021B3 File Offset: 0x000003B3
22 internal static int WriteIntToByteArray(byte[] array, int offset, int value)
23 {
24 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
25 }
26
27 // Token: 0x0600051E RID: 1310 RVA: 0x000093A0 File Offset: 0x000075A0
28 internal static int WriteStringToByteArray(byte[] array, int offset, string value)
29 {
30 /*
31An exception occurred when decompiling this method (0600051E)
32
33ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 UnityEngine.Profiling.Memory.Experimental.MemoryProfiler::WriteStringToByteArray(System.Byte[],System.Int32,System.String)
34
35 ---> System.Exception: Basic block has to end with unconditional control flow.
36{
37 Block_0:
38 stloc:int32(var_1_07, callgetter:int32(RuntimeHelpers::get_OffsetToStringData))
39}
40
41 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
42 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
43 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
44 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
45 --- End of inner exception stack trace ---
46 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
47 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
48*/;
49 }
50
51 // Token: 0x0600051F RID: 1311 RVA: 0x000093B8 File Offset: 0x000075B8
53 private static void FinalizeSnapshot(string path, bool result)
54 {
55 }
56
57 // Token: 0x06000520 RID: 1312 RVA: 0x000093C8 File Offset: 0x000075C8
59 private static void SaveScreenshotToDisk(string path, bool result, IntPtr pixelsPtr, int pixelsCount, TextureFormat format, int width, int height)
60 {
61 }
62
63 // Token: 0x0400040B RID: 1035
67
68 // Token: 0x0400040C RID: 1036
72
73 // Token: 0x0400040D RID: 1037
77 }
78}
class f__AnonymousType0<< Count > j__TPar
static Action< string, bool, DebugScreenCapture > m_SaveScreenshotToDisk
static void FinalizeSnapshot(string path, bool result)
static int WriteIntToByteArray(byte[] array, int offset, int value)
static void SaveScreenshotToDisk(string path, bool result, IntPtr pixelsPtr, int pixelsCount, TextureFormat format, int width, int height)
static int WriteStringToByteArray(byte[] array, int offset, string value)