Ian Herbert
Ian Herbert

Reputation: 1019

Saving chrome timeline data via javascript api

Starting and stopping the dev tools timeline is easy:

console.timeline("timeline1");
console.timelineEnd();

I am looking for a way to extract the data from a timeline and post it to a server. Or trigger the browsers 'save timeline data'. I want to collect timeline data from peoples machines while they test a web application.

Is this possible?

Thanks.

Upvotes: 4

Views: 366

Answers (1)

Telemicus
Telemicus

Reputation: 21

This data might be available in an extension, but unfortunately it's not available in standard Javascript. Also, as mentioned before "timeline" is now deprecated, instead you should use console.time() or console.timeEnd().

Upvotes: 1

Related Questions