筛选出配置文件结果中的文件 [英] Filtering out files in profile results

查看:66
本文介绍了筛选出配置文件结果中的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何方法可以从收集CPU配置文件中筛选出一些文件,或者仅从CPU配置文件结果中筛选出它们? 这就是我在说的( http://grab.by/so7y ): 无法按文件名过滤结果. 我尝试在Google Web Trace Framework的个人资料",时间轴"中找到它. 据我所知,这还没有. 或者也许是时候做那个功能了? 我认为每个开发人员都需要它,只要他不想描述自己使用的框架即可. 我在FF 27中找到了黑匣子"功能( https://developer. mozilla.org/zh-CN/docs/Tools/Debugger#Black_box_a_source ),但这仅用于调试.

Is there any way to filter out some files from collecting CPU profiles in or just filter them out in CPU profile results? That's what I'm talking about (http://grab.by/so7y): There's no way to filter the results by filename. I tried to find it in Profiles, in Timeline, in Google Web Trace Framework. And there is no such thing as far as I see. Or maybe it's time to make that feature? I think every developer needs it as far as he doesn't want to profile frameworks that he uses. I found "black box" feature in FF 27 (https://developer.mozilla.org/en-US/docs/Tools/Debugger#Black_box_a_source) but that is for debugging only.

推荐答案

不是如何在PROFILE RESULTS中过滤文件"的确切答案,而只是如何在Chrome中过滤文件",这应该为您提供所需的信息:

Not the exact answer to "how Filtering out files in PROFILE RESULTS" but just "how filtering out files in Chrome", which should give you the infos you need:

只需使用Chrome开发者标签时间轴"而不是配置文件",然后激活"JS配置文件"复选框即可.测量完某些内容后,您可以转到汇总的详细信息"标签,然后选择

Just use the Chrome developer tab "Timeline" instead of "Profiles", and have the checkbox for "JS Profile" activated. After you measured something, you can go to tab "Aggregated Details" and select

查看昂贵的功能"和按URL分组".

"View Costly Functions" and "Group by URL".

然后,您会列出所需的特定脚本中的功能的时间列表:

You then have a list of the time the functions from specific scripts needed:

这篇关于筛选出配置文件结果中的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆