Filtering out files in profile results

心已入冬 提交于 2020-01-01 08:53:07

问题


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.

回答1:


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:

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

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

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



来源:https://stackoverflow.com/questions/20243896/filtering-out-files-in-profile-results

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!