Skip to content

Factor out jank meter code into separate file#7309

Merged
lannka merged 4 commits intoampproject:masterfrom
lannka:jank-meter
Feb 2, 2017
Merged

Factor out jank meter code into separate file#7309
lannka merged 4 commits intoampproject:masterfrom
lannka:jank-meter

Conversation

@lannka
Copy link
Copy Markdown
Contributor

@lannka lannka commented Feb 2, 2017

No description provided.

if (paintLatency > 100) {
this.bigJankCounter_++;
}
this.jankMeterDisplay_.textContent =
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This could be extracted into a method, which you could call in constructor.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Copy Markdown
Member

@cramforce cramforce left a comment

Choose a reason for hiding this comment

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

Thanks. Lets play with this and delete if it turns out to be not useful.

@lannka lannka merged commit 2ba97de into ampproject:master Feb 2, 2017
@lannka lannka deleted the jank-meter branch February 2, 2017 23:52
torch2424 pushed a commit to torch2424/amphtml that referenced this pull request Feb 14, 2017
* Factor out jank meter code into separate file

* Rename jank-rate.js to jank-meter.js

* Makes this.win_ private

* address comment
mrjoro pushed a commit to mrjoro/amphtml that referenced this pull request Apr 28, 2017
* Factor out jank meter code into separate file

* Rename jank-rate.js to jank-meter.js

* Makes this.win_ private

* address comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants