Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 237
chris Avatar asked Jan 10 '11 20:01

chris


People also ask

How do I export data from Developer Tools?

In Chrome, the ability to export the Network panel is built in. Open the Developer Tools, click on the Network panel, then right-click anywhere within the panel and choose "Save as HAR with Content" to export the panel to the file system.

How do I save the Developer Tools log in Chrome?

Chrome/EdgeSelect Tools > Developer Tools. The Developer Tools window opens as a docked panel at the side or bottom of Chrome. Click the Network tab. Select Preserve log.


2 Answers

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.

like image 50
Mike West Avatar answered Sep 29 '22 02:09

Mike West


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.

like image 27
Ben Lynch Avatar answered Sep 29 '22 03:09

Ben Lynch