Changeset 245061 in webkit
- Timestamp:
- May 8, 2019 11:18:42 AM (5 years ago)
- Location:
- trunk/Source/WTF
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r245050 r245061 1 2019-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 1 11 2019-05-07 Yusuke Suzuki <ysuzuki@apple.com> 2 12 -
trunk/Source/WTF/wtf/TimingScope.cpp
r237099 r245061 74 74 const auto& data = state().addToTotal(m_name, MonotonicTime::now() - m_startTime); 75 75 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()); 77 77 } 78 78
Note: See TracChangeset
for help on using the changeset viewer.