Changeset 245061 in webkit


Ignore:
Timestamp:
May 8, 2019 11:18:42 AM (5 years ago)
Author:
rmorisset@apple.com
Message:

WTF::TimingScope should show the total duration and not just the mean
https://bugs.webkit.org/show_bug.cgi?id=197672

Reviewed by Alex Christensen.

  • wtf/TimingScope.cpp:

(WTF::TimingScope::scopeDidEnd):

Location:
trunk/Source/WTF
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r245050 r245061  
     12019-05-08  Robin Morisset  <rmorisset@apple.com>
     2
     3        WTF::TimingScope should show the total duration and not just the mean
     4        https://bugs.webkit.org/show_bug.cgi?id=197672
     5
     6        Reviewed by Alex Christensen.
     7
     8        * wtf/TimingScope.cpp:
     9        (WTF::TimingScope::scopeDidEnd):
     10
    1112019-05-07  Yusuke Suzuki  <ysuzuki@apple.com>
    212
  • trunk/Source/WTF/wtf/TimingScope.cpp

    r237099 r245061  
    7474    const auto& data = state().addToTotal(m_name, MonotonicTime::now() - m_startTime);
    7575    if (!(data.callCount % m_logIterationInterval))
    76         WTFLogAlways("%s: %u calls, mean duration: %.6fms", m_name, data.callCount, data.meanDuration().milliseconds());
     76        WTFLogAlways("%s: %u calls, mean duration: %.6fms, total duration: %.6fms", m_name, data.callCount, data.meanDuration().milliseconds(), data.totalDuration.milliseconds());
    7777}
    7878
Note: See TracChangeset for help on using the changeset viewer.