WebKit Bugzilla
Attachment 369317 Details for
Bug 197672
: WTF::TimingScope should show the total duration and not just the mean
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
patch197672 (text/plain), 1.30 KB, created by
Robin Morisset
on 2019-05-07 12:59:02 PDT
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Robin Morisset
Created:
2019-05-07 12:59:02 PDT
Size:
1.30 KB
patch
obsolete
>diff --git a/Source/WTF/ChangeLog b/Source/WTF/ChangeLog >index c6d49c940bb..8b510aec65e 100644 >--- a/Source/WTF/ChangeLog >+++ b/Source/WTF/ChangeLog >@@ -1,3 +1,13 @@ >+2019-05-07 Robin Morisset <rmorisset@apple.com> >+ >+ WTF::TimingScope should show the total duration and not just the mean >+ https://bugs.webkit.org/show_bug.cgi?id=197672 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ * wtf/TimingScope.cpp: >+ (WTF::TimingScope::scopeDidEnd): >+ > 2019-05-06 Christopher Reid <chris.reid@sony.com> > > [JSC] Respect already defined USE_LLINT_EMBEDDED_OPCODE_ID compiler variable. >diff --git a/Source/WTF/wtf/TimingScope.cpp b/Source/WTF/wtf/TimingScope.cpp >index 61295509bcf..a473249575d 100644 >--- a/Source/WTF/wtf/TimingScope.cpp >+++ b/Source/WTF/wtf/TimingScope.cpp >@@ -73,7 +73,7 @@ void TimingScope::scopeDidEnd() > { > const auto& data = state().addToTotal(m_name, MonotonicTime::now() - m_startTime); > if (!(data.callCount % m_logIterationInterval)) >- WTFLogAlways("%s: %u calls, mean duration: %.6fms", m_name, data.callCount, data.meanDuration().milliseconds()); >+ WTFLogAlways("%s: %u calls, mean duration: %.6fms, total duration: %.6fms", m_name, data.callCount, data.meanDuration().milliseconds(), data.totalDuration.milliseconds()); > } > > } // namespace WebCore
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 197672
: 369317 |
369352