内存使用情况 [英] Memory USage
问题描述
如果我想确切知道特定变量使用了多少内存,我将如何解决这个问题。或者在哪里寻找信息将是
赞赏。只需要一个类/命名空间
谢谢,
CJ
If I wanted to find out exactly how much memory a particular variable was
using, how would I go about that. Or where to look for information would be
appreciated. Just need a class/namespace
Thanks,
CJ
推荐答案
CJ Taylor < [cege] at [tavayn] dit commmmm> schrieb
"CJ Taylor" <[cege] at [tavayn] dit commmmm> schrieb
如果我想确切知道特定变量
使用了多少内存,我该怎么做呢。或者在哪里寻找
信息将不胜感激。只需要一个类/命名空间
If I wanted to find out exactly how much memory a particular variable
was using, how would I go about that. Or where to look for
information would be appreciated. Just need a class/namespace
Marshal.Sizeof在编组到非托管代码时返回大小。不要
知道如何获得托管大小。我认为我们不允许知道这个
,因为自动内存管理已经完成。 ;-)
-
Armin
如何报价及原因:
http://www.plig.net/nnq/nquote.html
< a rel =nofollowhref =http://www.netmeister.org/news/learn2quote.html\"target =_ blank> http://www.netmeister.org/news/learn2quote.html
Marshal.Sizeof returns the size when marshalled to unmanaged code. Don''t
know how to get the managed size. I think we are not allowed to know this
because automatic memory management is done. ;-)
--
Armin
How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html
" Armin Zingler" < AZ ******* @ freenet.de>在消息中写道
news:40 *********************** @ news.freenet.de ...
"Armin Zingler" <az*******@freenet.de> wrote in message
news:40***********************@news.freenet.de...
CJ Taylor < [cege] at [tavayn] dit commmmm> schrieb
"CJ Taylor" <[cege] at [tavayn] dit commmmm> schrieb
如果我想确切知道特定变量
使用了多少内存,我该怎么做呢。或者在哪里寻找
信息将不胜感激。只需要一个类/命名空间
Marshal.Sizeof在编组到非托管代码时返回大小。不要知道如何获得托管大小。我想我们不被允许知道这个
因为自动内存管理已经完成。 ; - )
If I wanted to find out exactly how much memory a particular variable
was using, how would I go about that. Or where to look for
information would be appreciated. Just need a class/namespace
Marshal.Sizeof returns the size when marshalled to unmanaged code. Don''t
know how to get the managed size. I think we are not allowed to know this
because automatic memory management is done. ;-)
是的,为非托管类型找到了sizeOf。无用考虑我想要
来了解什么是我的托管类型。 Damnit。
=)
嗯,有时自动内存管理很糟糕。
=)
-
Armin
如何报价以及原因:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html
" CJ Taylor" < [cege] at [tavayn] dit commmmm> schrieb
"CJ Taylor" <[cege] at [tavayn] dit commmmm> schrieb
是的,为非托管类型找到了sizeOf。没用,考虑到我想知道什么是我的托管类型。 Damnit。
=)
好吧,有时自动内存管理很糟糕。
=)
Yeah found the sizeOf for the unmanaged types. Useless considering I
want to know what is spiking my managed types. Damnit.
=)
Well, sometimes Automatic Memory Managment sucks.
=)
是的,VB程序员总是想要更多的影响力 - 但他们得到的更少。 ;-)
-
Armin
Yes, VB programmers always wanted more influence - but they got less. ;-)
--
Armin
这篇关于内存使用情况的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!