开发者

Is there any way to export time graphs from Chrome developer tool?

I'm using the Chrome developer tools to review a web site for开发者_运维百科 a client, and it would be nice if I could export the results of the time graph.

Is that possible?


Assuming that you're referring to the waterfall chart output in the network panel, you can right-click on the chart's header (or any empty space in the chart itself), and select "Copy network log as HAR" to pull the chart's data into your clipboard.

HAR is a format that lots of tools understand; to generate a nice waterfall chart to discuss with your clients, take a look at something like HAR Viewer. I think that will meet your needs.


This isn't exactly simple but seems to work well enough!

  1. First you need to get the timeline up in the Dev Tools and right click somewhere on and "Inspect Element". This will open another version of Dev Tools, with the HTML available.

  2. You need to copy this by right clicking on the <html> tag and selecting "Copy as HTML".

  3. Paste this into a text editor and save as an html file.

  4. View the following urls in Chrome and save these files to the same place as the html file. chrome-devtools://devtools/DevTools.js chrome-devtools://devtools/devTools.css

  5. Change the locations in the <head> tag in the saved html to point to these files.

  6. Save all the images in the resources tab in an "Images" folder in the foot of where this file is. This will take ages, sorry! I think these would all be contained within the Chrome "resources.pak" file which is in Chromes installation directory, however I couldn't find an easy way to extract it.

  7. Viewing your HTML in a browser should show you what you need, obviously once you have extracted the resources, js and css, you can simply copy and paste different versions of the timeline to different HTML files.


If you want a quick and easy way of capturing the data on the network panel you can right-click on any row in the displayed data, select all then copy and paste the contents into Excel.

Excel actually does a good job of capturing the tabulated layout of the data, plus once in Excel you can manipulate the data according to your needs.

One drawback is that it doesn't capture those neat waterfall graphs produced in Chrome but I guess Excel's graphing capability could make up for that!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜