Commit d45202aa authored by commit-queue@webkit.org's avatar commit-queue@webkit.org
Browse files

[chromium] Add field to WebRenderingStats to track if we have impl-thread scrolled

https://bugs.webkit.org/show_bug.cgi?id=97919

Patch by Terry Anderson <tdanderson@chromium.org> on 2012-10-02
Reviewed by James Robinson.

Add two new members |numImplThreadScrolls| and |numMainThreadScrolls| to track
the total number of times we have impl-thread scrolled and main-thread scrolled,
respectively.

* chromium/public/WebRenderingStats.h:
(WebRenderingStats):
(WebKit::WebRenderingStats::WebRenderingStats):
(WebKit::WebRenderingStats::enumerateFields):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130180 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent cc8447cf
2012-10-02 Terry Anderson <tdanderson@chromium.org>
[chromium] Add field to WebRenderingStats to track if we have impl-thread scrolled
https://bugs.webkit.org/show_bug.cgi?id=97919
Reviewed by James Robinson.
Add two new members |numImplThreadScrolls| and |numMainThreadScrolls| to track
the total number of times we have impl-thread scrolled and main-thread scrolled,
respectively.
* chromium/public/WebRenderingStats.h:
(WebRenderingStats):
(WebKit::WebRenderingStats::WebRenderingStats):
(WebKit::WebRenderingStats::enumerateFields):
2012-09-28 Harald Tveit Alvestrand <harald@alvestrand.no>
Implement the GetStats interface on PeerConnection
......
......@@ -36,6 +36,8 @@ struct WebRenderingStats {
double totalRasterizeTimeInSeconds;
double totalCommitTimeInSeconds;
size_t totalCommitCount;
size_t numImplThreadScrolls;
size_t numMainThreadScrolls;
WebRenderingStats()
: numAnimationFrames(0)
......@@ -45,6 +47,8 @@ struct WebRenderingStats {
, totalRasterizeTimeInSeconds(0)
, totalCommitTimeInSeconds(0)
, totalCommitCount(0)
, numImplThreadScrolls(0)
, numMainThreadScrolls(0)
{
}
......@@ -70,6 +74,8 @@ struct WebRenderingStats {
enumerator->addDouble("totalRasterizeTimeInSeconds", totalRasterizeTimeInSeconds);
enumerator->addDouble("totalCommitTimeInSeconds", totalCommitTimeInSeconds);
enumerator->addInt("totalCommitCount", totalCommitCount);
enumerator->addInt("numImplThreadScrolls", numImplThreadScrolls);
enumerator->addInt("numMainThreadScrolls", numMainThreadScrolls);
}
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment