查找程序集中特定类使用的近似磁盘空间

发布于 2024-09-09 07:12:09 字数 202 浏览 0 评论 0原文

是否可以确定程序集中的类、命名空间或方法使用的磁盘空间?例如,在 Reflector 中,您可以查看所选程序集中资源使用的字节数。

我这么问是因为我正在使用 Silverlight 并且我的客户端可执行文件 (xap) 变得相当大。已经可以在 xap 中看到包含的 DLL 和资源文件的大小,但是我的主 DLL 非常占用空间,所以我需要深入到代码级别来找出哪些模块如此之大。

Is it possible to determine the disk spaced used by a class, namespace or method in an assembly? For example in Reflector you can see the number of bytes used by resources in the selected assembly.

I am asking because I am working with Silverlight and my client executable (xap) is getting quite big. It's already possible to see the size of included DLL and resource files in the xap, but my main DLL is space hog, so I need go down to a code level to find out which modules are so fat.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

不喜欢何必死缠烂打 2024-09-16 07:12:09

Reflector 的 CodeMetrics 插件可能会有所帮助。

May be CodeMetrics plugin for Reflector will help.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文