terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
MemoryProfiler.cs
Go to the documentation of this file.
1using System;
11
13{
14 [NativeHeader("Modules/Profiler/Runtime/MemorySnapshotManager.h")]
15 [global::Cpp2ILInjected.Token(Token = "0x20000F1")]
16 public sealed class MemoryProfiler
17 {
19 [global::Cpp2ILInjected.Token(Token = "0x600051C")]
20 [global::Cpp2ILInjected.Address(RVA = "0x1F87E64", Offset = "0x1F87E64", Length = "0x19C")]
21 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
22 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
23 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
24 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MemoryProfiler), Member = "WriteStringToByteArray", MemberParameters = new object[]
25 {
26 typeof(byte[]),
27 typeof(int),
28 typeof(string)
29 }, ReturnType = typeof(int))]
30 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 7)]
31 private static byte[] PrepareMetadata()
32 {
33 throw null;
34 }
35
36 [global::Cpp2ILInjected.Token(Token = "0x600051D")]
37 [global::Cpp2ILInjected.Address(RVA = "0x1F88000", Offset = "0x1F88000", Length = "0x40")]
38 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
39 internal static int WriteIntToByteArray(byte[] array, int offset, int value)
40 {
41 throw null;
42 }
43
44 [global::Cpp2ILInjected.Token(Token = "0x600051E")]
45 [global::Cpp2ILInjected.Address(RVA = "0x1F88040", Offset = "0x1F88040", Length = "0x7C")]
46 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
47 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(MemoryProfiler), Member = "PrepareMetadata", ReturnType = typeof(byte[]))]
48 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
49 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(RuntimeHelpers), Member = "get_OffsetToStringData", ReturnType = typeof(int))]
50 internal static int WriteStringToByteArray(byte[] array, int offset, string value)
51 {
52 throw null;
53 }
54
56 [global::Cpp2ILInjected.Token(Token = "0x600051F")]
57 [global::Cpp2ILInjected.Address(RVA = "0x1F880BC", Offset = "0x1F880BC", Length = "0x84")]
58 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
59 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
60 private static void FinalizeSnapshot(string path, bool result)
61 {
62 throw null;
63 }
64
66 [global::Cpp2ILInjected.Token(Token = "0x6000520")]
67 [global::Cpp2ILInjected.Address(RVA = "0x1F88140", Offset = "0x1F88140", Length = "0xFC")]
68 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
69 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
70 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NativeArrayUnsafeUtility[]), Member = "ConvertExistingDataToNativeArray", MemberTypeParameters = new object[] { typeof(byte) }, MemberParameters = new object[]
71 {
72 typeof(void*),
73 typeof(int),
75 }, ReturnType = "Unity.Collections.NativeArray`1<T>")]
76 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
77 private unsafe static void SaveScreenshotToDisk(string path, bool result, IntPtr pixelsPtr, int pixelsCount, TextureFormat format, int width, int height)
78 {
79 throw null;
80 }
81
84 [global::Cpp2ILInjected.Token(Token = "0x400040B")]
85 private static Action<string, bool> m_SnapshotFinished;
86
89 [global::Cpp2ILInjected.Token(Token = "0x400040C")]
90 private static Action<string, bool, DebugScreenCapture> m_SaveScreenshotToDisk;
91
94 [global::Cpp2ILInjected.Token(Token = "0x400040D")]
95 private static Action<MetaData> createMetaData;
96 }
97}
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 unsafe 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)