I like the chrome devtools performance tab information, but I want to be able to record the performance profile during an automated functional test. I can execute javascript to get initial load performance data (window.performance
), and what I'm looking for is something that like to get Performance profile information. Simple things like the duration of a network calls and profile summary.
Something like:
events =[
{ type: Network request,
URL: someURL,
Duration: 431.43 ms,
Request Method: POST,
Priority: High,
Mime Type: application/json,
Encoded Data: 544 B,
Decoded Body: 50 B,
Initiator: JavascriptInsert.js:49
},
{
type: Network request,
URL: someOtherURL,
Duration: 81.50 ms,
Request Method: POST,
Priority: High,
Mime Type: text/plain,
Encoded Data: 260 B,
Initiator: angular.js:10514
}
]
and
summary= {
Loading: 2.5ms,
Scripting: 587.6ms,
Rendering: 77.6ms,
Painting: 52.5ms,
Other: 109.3ms,
Idle: 3040.1ms
}