本文介绍了PhantomJS WebPage内存消耗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否存在程序化(因为我想在运行时自动执行)方式以查看网页在通过PhantomJs运行时使用了多少内存?

Is there a programmatic (since i want to do it automatically at runtime) way to see how much memory a webpage uses when running it through PhantomJs?

我是也可以使用casperjs,如果这可能会有所帮助。我搜索了很多,但没有找到任何办法。 PhantomJs使用QtWebKit,因此我无权访问window.performance.memory。

I am also using casperjs if that could be helpful. I have searched a lot but haven't found any way. PhantomJs uses QtWebKit so I don't have access to window.performance.memory.

我想获取此信息,因为我正在为Web应用程序设置自动性能测试。

I want to have this information since I am setting up automated performance tests for a web application.

提前致谢

推荐答案

不,此时这个功能不受支持,但我发现有关

No, at this time this feature is not supported, but I have found issue about that https://github.com/ariya/phantomjs/issues/10031

这篇关于PhantomJS WebPage内存消耗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 19:55
查看更多