如何监视或可视化delphi应用程序的内存碎片 [英] How to monitor or visualize memory fragmentation of a delphi application
本文介绍了如何监视或可视化delphi应用程序的内存碎片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何监视或可视化delphi应用程序的内存碎片?
How can I monitor or visualize memory fragmentation of a delphi application?
推荐答案
大多数Delphi应用程序使用 FastMM ,如果您有源代码版本链接,您可以使用FastMMUsageTracker.pas文件,该文件创建一个单独的窗口,显示每秒钟内更新内存的方式。
Most Delphi applications use FastMM now, and if you have the source code version linked in you can use the FastMMUsageTracker.pas file which creates a separate window showing how memory is used updated every second or so.
我在该文件中使用了代码,并创建了一个登录到文件的版本,以便我可以在一个服务中使用它,但是对于桌面应用程序,标准跟踪器将工作得很好。
I took the code in that file and created a version which logs to file, so that I could use it in a service, but for a desktop app that standard tracker will work well.
这篇关于如何监视或可视化delphi应用程序的内存碎片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文