Skip to content

Tool that shows the size of things in a .NET assembly

License

Notifications You must be signed in to change notification settings

lucaspimentel/sizer-net

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This fork of Sizer.Net targets .NET 9.


Sizer.Net

This is a tool that shows the size of things (types, methods, static arrays, etc.) in a .NET assembly.

Screenshot

Download

You can find a binary download under the Releases page.

Usage

On launch it shows a file selection dialog with which you can load any kind of .NET assembly (exe or dll). Once loaded, it shows the things stored in the assembly in a tree view with the accumulated size on the right. The usual structure is: [assembly name] → [namespace] → [class] → [thing]

Command line

If launched via command line, it takes a path to an exe or dll file as the first argument.

Accuracy

The tool is not fully accurate as it uses the simple approach of inspection via .NET's built-in reflection. While the size of actual byte instructions of functions is correct, overhead from types, fields, etc. is estimated.

A more accurate method would be to use a custom .NET metadata reader library like dnlib that could read byte-accurate information.

Unlicense

Sizer.Net is available under the Unlicense.

About

Tool that shows the size of things in a .NET assembly

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%