1

I ran perfomance analysis for memory and the analysis report it genrated is not entirely clear to me. The warning is "Instances of System.Int32[] account for 80.90% of allocations. Analyze the Heap Summary for new allocations or visuals."

The report shows 14890 Int32 instances taking 73541684 bytes of memory. I dont understand how can 15000 integar values take 70MB of memory. It's a 32 bit integer. What am I missing?

The memory usage for app is more in memory profiling session than CPU profiling session but I assume that's due to some memory consumed by profiling itself.

http://i.imgur.com/FI5My.png

4

1 に答える 1

0

のインスタンスが15,000まであると言っているわけではありませんが、配列Int32インスタンスが15,000まであり、その最大のインスタンスは1,536,012バイトで、平均サイズは4,909バイトであり、これらはすべてのメモリ割り当ての80.90%を占めています。解析。Int32System.Int32[]

于 2012-04-17T22:24:05.140 に答える