在“调试” View 中,查看“变量”选项卡时,有没有一种方法可以轻松查看给定变量消耗了多少堆? (类似于 Java 的堆分析工具)
最佳答案
我认为这会有所帮助:
The Eclipse Memory Analyzer is a fast and feature-rich Java heap analyzer that helps you find memory leaks and reduce memory consumption.
Use the Memory Analyzer to analyze productive heap dumps with hundreds of millions of objects, quickly calculate the retained sizes of objects, see who is preventing the Garbage Collector from collecting objects, run a report to automatically extract leak suspects.
关于java - 在 Eclipse 中,调试时,是否有一种简单的方法可以查看变量的总内存大小?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4785469/