https://github.com/jpmikkers/baksteen.extensions.deepsize
csharp extension that measures the size of an object and everything contained by it
https://github.com/jpmikkers/baksteen.extensions.deepsize
csharp diagnostic diagnostic-tool dotnet dotnet6 extension extension-method reflection sizeof weight
Last synced: about 2 months ago
JSON representation
csharp extension that measures the size of an object and everything contained by it
- Host: GitHub
- URL: https://github.com/jpmikkers/baksteen.extensions.deepsize
- Owner: jpmikkers
- License: mit
- Created: 2022-10-20T10:51:06.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-18T23:02:36.000Z (3 months ago)
- Last Synced: 2025-02-19T00:21:53.466Z (3 months ago)
- Topics: csharp, diagnostic, diagnostic-tool, dotnet, dotnet6, extension, extension-method, reflection, sizeof, weight
- Language: C#
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Baksteen.Extensions.DeepSize
C# extension method that measures the size of an object and everything contained or referenced by it. It's useful when you're trying to minimize the memory footprint of a class during development, or to examine which objects are getting bloated in your production software.
The calculated size is approximate because it does not account for the internal memory representation that may differ slightly due to field alignment padding.