Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

first meaningful Paint metric #31

Merged
merged 7 commits into from Mar 21, 2016
Merged

Conversation

paulirish
Copy link
Member

Sketching out how we share the fMP metric as described in #26.

Metrics broke out into separate folders, but matching the audit style so far, as they certainly share the inputs approach.

var events = model.timelineModel().mainThreadEvents();

var navStartEvent = events.filter(e => e.name === 'navigationStart');
var firstTextPaintEvent = events.filter(e =>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's extract the filter body into a named function, (easier to test)

var DevtoolsTimelineModel = require('devtools-timeline-model');

module.exports = function(data) {
// FIXME(paulirish) save the trace to file in debug file for later analysis.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should make a real issue for tracking this. I think we're going to want an easy way to save artifacts in general (e.g. for graphing over time a la bigrig)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

filed #35

@paulirish
Copy link
Member Author

Unfortunately the global WebInspector objects from devtools-timeline-model module and brendan's network listener are now conflicting as Brendan foresaw. :/

It'll require some work to sort them out.

@paulirish
Copy link
Member Author

WebInspector conflicts finally sorted. Good lord I did not enjoy that. :)

paulirish added a commit that referenced this pull request Mar 21, 2016
first meaningful Paint metric
@paulirish paulirish merged commit 04ab0ec into GoogleChrome:master Mar 21, 2016
@samccone
Copy link
Contributor

👌 ace work

@paulirish paulirish deleted the fmp-metric branch April 24, 2016 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants