Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要对 .NET Framework 应用程序进行一些内存分析。我应该使用调试版本还是发布版本?
使用调试符号构建的发布版本。
这样就没有调试构建开销(例如在数组之后添加额外的内存以进行溢出检测),但您仍然拥有将地址与变量相关联所需的名称。
您应该分析导致问题的构建。我假设您正在为您的用户提供发布版本,因此您应该对此进行分析。