Nothing fancy, really, just navigates to a page and captures some TimelineMetrics. My output is:
$ node browser-perf.js
(node:56985) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
err undefined
res [ { Styles: 0,
Javascript: 0,
_browserName: 'chrome',
_url: 'https://vararu.org/' } ]
I've ran it on other websites (which definitely have layout thrashing, performance issues when switching between pages), but both the JavaScript and Styles aggregates seem to return 0. I looked over TimelineMetrics.prototype.addAggregates_ and the res being passed in is an empty object. Higher up the call stack in TimelineMetrics.prototype.getResults, this.timelineMetrics and this.runtimePerfMetrics.getResults() are both empty objects.
Didn't go further, but am I doing something obvious as to why this wouldn't work?
Hello there! 👋
I'm running this script:
Nothing fancy, really, just navigates to a page and captures some TimelineMetrics. My output is:
I've ran it on other websites (which definitely have layout thrashing, performance issues when switching between pages), but both the
JavaScript
andStyles
aggregates seem to return 0. I looked overTimelineMetrics.prototype.addAggregates_
and theres
being passed in is an empty object. Higher up the call stack inTimelineMetrics.prototype.getResults
,this.timelineMetrics
andthis.runtimePerfMetrics.getResults()
are both empty objects.Didn't go further, but am I doing something obvious as to why this wouldn't work?
Setup details: