Title: [209489] trunk
- Revision
- 209489
- Author
- simon.fra...@apple.com
- Date
- 2016-12-07 15:41:58 -0800 (Wed, 07 Dec 2016)
Log Message
Add system trace points for _javascript_ VM entry/exit
https://bugs.webkit.org/show_bug.cgi?id=165550
Reviewed by Tim Horton.
Source/_javascript_Core:
Add trace points for entry/exit into/out of the JS VM.
* runtime/VMEntryScope.cpp:
(JSC::VMEntryScope::VMEntryScope):
(JSC::VMEntryScope::~VMEntryScope):
Source/WTF:
Add trace points for entry/exit into/out of the JS VM.
* wtf/SystemTracing.h:
Tools:
Add trace points for entry/exit into/out of the JS VM.
* Tracing/SystemTracePoints.plist:
Modified Paths
Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (209488 => 209489)
--- trunk/Source/_javascript_Core/ChangeLog 2016-12-07 23:23:30 UTC (rev 209488)
+++ trunk/Source/_javascript_Core/ChangeLog 2016-12-07 23:41:58 UTC (rev 209489)
@@ -1,3 +1,16 @@
+2016-12-07 Simon Fraser <simon.fra...@apple.com>
+
+ Add system trace points for _javascript_ VM entry/exit
+ https://bugs.webkit.org/show_bug.cgi?id=165550
+
+ Reviewed by Tim Horton.
+
+ Add trace points for entry/exit into/out of the JS VM.
+
+ * runtime/VMEntryScope.cpp:
+ (JSC::VMEntryScope::VMEntryScope):
+ (JSC::VMEntryScope::~VMEntryScope):
+
2016-12-06 Keith Miller <keith_mil...@apple.com>
Add support for truncation operators
Modified: trunk/Source/_javascript_Core/runtime/VMEntryScope.cpp (209488 => 209489)
--- trunk/Source/_javascript_Core/runtime/VMEntryScope.cpp 2016-12-07 23:23:30 UTC (rev 209488)
+++ trunk/Source/_javascript_Core/runtime/VMEntryScope.cpp 2016-12-07 23:41:58 UTC (rev 209489)
@@ -31,6 +31,7 @@
#include "VM.h"
#include "Watchdog.h"
#include <wtf/StackBounds.h>
+#include <wtf/SystemTracing.h>
namespace JSC {
@@ -53,6 +54,7 @@
if (SamplingProfiler* samplingProfiler = vm.samplingProfiler())
samplingProfiler->noticeVMEntry();
#endif
+ TracePoint(VMEntryScopeStart);
}
vm.clearLastException();
@@ -68,6 +70,8 @@
if (m_vm.entryScope != this)
return;
+ TracePoint(VMEntryScopeEnd);
+
if (m_vm.watchdog())
m_vm.watchdog()->exitedVM();
Modified: trunk/Source/WTF/ChangeLog (209488 => 209489)
--- trunk/Source/WTF/ChangeLog 2016-12-07 23:23:30 UTC (rev 209488)
+++ trunk/Source/WTF/ChangeLog 2016-12-07 23:41:58 UTC (rev 209489)
@@ -1,3 +1,14 @@
+2016-12-07 Simon Fraser <simon.fra...@apple.com>
+
+ Add system trace points for _javascript_ VM entry/exit
+ https://bugs.webkit.org/show_bug.cgi?id=165550
+
+ Reviewed by Tim Horton.
+
+ Add trace points for entry/exit into/out of the JS VM.
+
+ * wtf/SystemTracing.h:
+
2016-12-06 Alexey Proskuryakov <a...@apple.com>
Correct SDKROOT values in xcconfig files
Modified: trunk/Source/WTF/wtf/SystemTracing.h (209488 => 209489)
--- trunk/Source/WTF/wtf/SystemTracing.h 2016-12-07 23:23:30 UTC (rev 209488)
+++ trunk/Source/WTF/wtf/SystemTracing.h 2016-12-07 23:41:58 UTC (rev 209489)
@@ -41,6 +41,8 @@
WTFRange = 0,
_javascript_Range = 2500,
+ VMEntryScopeStart,
+ VMEntryScopeEnd,
WebCoreRange = 5000,
StyleRecalcStart,
Modified: trunk/Tools/ChangeLog (209488 => 209489)
--- trunk/Tools/ChangeLog 2016-12-07 23:23:30 UTC (rev 209488)
+++ trunk/Tools/ChangeLog 2016-12-07 23:41:58 UTC (rev 209489)
@@ -1,3 +1,14 @@
+2016-12-07 Simon Fraser <simon.fra...@apple.com>
+
+ Add system trace points for _javascript_ VM entry/exit
+ https://bugs.webkit.org/show_bug.cgi?id=165550
+
+ Reviewed by Tim Horton.
+
+ Add trace points for entry/exit into/out of the JS VM.
+
+ * Tracing/SystemTracePoints.plist:
+
2016-12-07 ChangSeok Oh <changs...@webkit.org>
[GTK] Cannot build GTK+ with CUPS 2.* versions
Modified: trunk/Tools/Tracing/SystemTracePoints.plist (209488 => 209489)
--- trunk/Tools/Tracing/SystemTracePoints.plist 2016-12-07 23:23:30 UTC (rev 209488)
+++ trunk/Tools/Tracing/SystemTracePoints.plist 2016-12-07 23:41:58 UTC (rev 209489)
@@ -9,6 +9,18 @@
<array>
<dict>
<key>Name</key>
+ <string>_javascript_ VM</string>
+ <key>Type</key>
+ <string>Interval</string>
+ <key>Component</key>
+ <string>47</string>
+ <key>CodeBegin</key>
+ <string>2501</string>
+ <key>CodeEnd</key>
+ <string>2502</string>
+ </dict>
+ <dict>
+ <key>Name</key>
<string>Document::recalcStyle()</string>
<key>Type</key>
<string>Interval</string>
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes