更好的 Flex 内存分析工具
有谁知道还有比 Flex Builder Profiler 更好的工具吗?我用谷歌搜索了又谷歌搜索没有结果。
虽然 FB 工具适用于小型应用程序/小泄漏情况,但它们远远不足以涉足大规模 Flex 应用程序(严重泄漏内存)中可能出现的对象引用丛林。特别是,任何相当复杂的视图结构最终都会有大量对顶级视图的父/子对象引用 - 其中没有一个与从父视图外部查找一两个引用完全相关导致整个推注不可 GC 的子子图。
如果没有人有更好的建议,我正在认真考虑编写一个工具来解析 Flex Builder 可以生成的保存的配置文件转储,以便我可以进行自己的“图形修剪”来查找重要的参考。如果我走这条路,欢迎合作!
Does anyone know of any better tools that the Flex Builder Profiler? I've googled and googled to no avail.
While the FB tools are OK for small apps / small leak situations, they're nowhere near adequate for wading through the thicket of object references that can arise in a large scale Flex app (that is leaking memory heavily). In particular, any reasonably complex view structure ends up with huge numbers of parent/child object references to the top level view - none of which are at all relevant to finding the one or two refs from outside the parent child subgraph that are causing the whole bolus to be non-GC'able.
If no one has any better suggestions, I'm seriously considering writing a tool to parse the saved profile dumps that Flex Builder can generate so that I can do my own "graph pruning" to find the important refs. If I go this route, collaboration would be welcome!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我喜欢你的DIY态度。我也找不到任何 Profiler 替代品,但是 这里有一篇文章 Adobe Training from the Source 一书的作者之一对我帮助很大。我建议对此处概述的编码建议进行现场审查。 HTH。
更新:De MonsterDebugger 还具有内存监视器功能。
I like your DIY attitude. I couldn't find any Profiler alternatives either, but here's an article that helped me a lot by one of the authors of the Adobe Training from the Source book. I'd suggest doing spot reviews on the coding suggestions outlined here. HTH.
UPDATE: De MonsterDebugger also has a memory monitor feature.
查看 http: //code.google.com/p/pushbuttonengine/source/browse/trunk/src/com/pblabs/engine/debug/Profiler.as
Flex 应用程序的非常有趣的项目。
Check out http://code.google.com/p/pushbuttonengine/source/browse/trunk/src/com/pblabs/engine/debug/Profiler.as
Very interesting project for Flex applications.
Powerflasher 的 FDT IDE 有一个复杂的分析工具。
Powerflasher's FDT IDE has an elaborate profiling tool.
看看这个:
http://www.bytearray.org/?p=3151
好东西正在发生:)
Check this out:
http://www.bytearray.org/?p=3151
Good things are happening :)