You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- New hook for output formats
- Plugin loggers
- Binary structure size tracking
- ELF loading time optimizations
- v29.1 support
- v27 generic type fixes
- Moved build report to a plugin
varmethodsBySize=context.AllTypes.SelectMany(t =>t.Methods).Where(m =>m.UnderlyingPointer!=0).ToDictionary(m =>m, m =>m.RawBytes.Length);
66
+
varmethodsBySize=context.AllTypes.SelectMany(t =>t.Methods).Where(m =>mis not InjectedMethodAnalysisContext).Where(m =>m.UnderlyingPointer!=0).ToDictionary(m =>m, m =>m.RawBytes.Length);
ret.AppendLine($" Of which generic method bodies: {sizeOfAllGenerics} bytes ({sizeOfAllGenerics/1024f/1024:f2}MB, {(double)sizeOfAllGenerics/binarySize:p})");
110
-
ret.AppendLine($" Of which non-generic method bodies: {sizeOfAllNonGenerics} bytes ({sizeOfAllNonGenerics/1024f/1024:f2}MB, {(double)sizeOfAllNonGenerics/binarySize:p})");
123
+
ret.AppendLine($" Of which {numberOfGenericPointers}generic method bodies: {sizeOfAllGenerics} bytes ({sizeOfAllGenerics/1024f/1024:f2}MB, {(double)sizeOfAllGenerics/binarySize:p})");
124
+
ret.AppendLine($" Of which {numberOfNonGenerics}non-generic method bodies: {sizeOfAllNonGenerics} bytes ({sizeOfAllNonGenerics/1024f/1024:f2}MB, {(double)sizeOfAllNonGenerics/binarySize:p})");
111
125
ret.AppendLine($" Of which Custom Attribute generator bodies: {sizeOfAllCaGenerators} bytes ({sizeOfAllCaGenerators/1024f/1024:f2}MB, {(double)sizeOfAllCaGenerators/binarySize:p})");
112
126
ret.AppendLine($" Of which in-binary il2cpp metadata: {metadataInBinarySize} bytes ({metadataInBinarySize/1024f/1024:f2}MB, {(double)metadataInBinarySize/binarySize:p})");
113
127
ret.AppendLine($" Of which C++ functions (il2cpp api functions, etc) and misc data: {unclassifiedSize} bytes ({(unclassifiedSize)/1024f/1024:f2}MB, {(double)unclassifiedSize/binarySize:p})");
114
128
ret.AppendLine();
115
-
ret.AppendLine($"Total number of generic variants: {numberOfGenericVariants}");
129
+
ret.AppendLine($"Total number of generic variants: {numberOfGenericVariants} ({numberOfGenericPointers} after generic merging)");
116
130
ret.AppendLine(" Top 100 most varied generic methods:");
publicoverridestringDescription=>"Adds an output format which generates information useful to the developer about what is taking up space in the build process";
0 commit comments