Changeset 124677 in webkit


Ignore:
Timestamp:
Aug 3, 2012 5:40:01 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[chromium] Fix Renderer4.CompositorThreadImplDrawDelay histogram.
https://bugs.webkit.org/show_bug.cgi?id=93159

Patch by Dave Tu <dtu@chromium.org> on 2012-08-03
Reviewed by Adrienne Walker.

The histogram is using the frame number instead of the frame time by mistake.

  • platform/graphics/chromium/cc/CCFrameRateCounter.cpp:

(WebCore::CCFrameRateCounter::markBeginningOfFrame):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r124675 r124677  
     12012-08-03  Dave Tu  <dtu@chromium.org>
     2
     3        [chromium] Fix Renderer4.CompositorThreadImplDrawDelay histogram.
     4        https://bugs.webkit.org/show_bug.cgi?id=93159
     5
     6        Reviewed by Adrienne Walker.
     7
     8        The histogram is using the frame number instead of the frame time by mistake.
     9
     10        * platform/graphics/chromium/cc/CCFrameRateCounter.cpp:
     11        (WebCore::CCFrameRateCounter::markBeginningOfFrame):
     12
    1132012-08-03  David Grogan  <dgrogan@chromium.org>
    214
  • trunk/Source/WebCore/platform/graphics/chromium/cc/CCFrameRateCounter.cpp

    r123421 r124677  
    6767void CCFrameRateCounter::markBeginningOfFrame(double timestamp)
    6868{
     69    m_timeStampHistory[frameIndex(m_currentFrameNumber)] = timestamp;
     70    double frameIntervalSeconds = frameInterval(m_currentFrameNumber);
     71
    6972    if (CCProxy::hasImplThread() && m_currentFrameNumber > 0) {
    70         double lastFrameTimestamp = frameIndex(m_currentFrameNumber - 1);
    71         double drawDelaySeconds = timestamp - lastFrameTimestamp;
    72         double drawDelayMs = drawDelaySeconds * 1000.0;
    73 
     73        double drawDelayMs = frameIntervalSeconds * 1000.0;
    7474        WebKit::Platform::current()->histogramCustomCounts("Renderer4.CompositorThreadImplDrawDelay", static_cast<int>(drawDelayMs), 1, 120, 60);
    7575    }
    7676
    77     m_timeStampHistory[frameIndex(m_currentFrameNumber)] = timestamp;
    78     double delta = frameInterval(m_currentFrameNumber);
    79     if (!isBadFrameInterval(delta) && delta > kDroppedFrameTime)
     77    if (!isBadFrameInterval(frameIntervalSeconds) && frameIntervalSeconds > kDroppedFrameTime)
    8078        ++m_droppedFrameCount;
    8179}
Note: See TracChangeset for help on using the changeset viewer.