Title: [274486] trunk
- Revision
- 274486
- Author
- pvol...@apple.com
- Date
- 2021-03-16 09:57:35 -0700 (Tue, 16 Mar 2021)
Log Message
Add signpost for injected bundle creation
https://bugs.webkit.org/show_bug.cgi?id=223068
Reviewed by Alex Christensen.
Source/WebKit:
Emit signposts for creation of injected bundle.
* WebProcess/InjectedBundle/InjectedBundle.cpp:
(WebKit::InjectedBundle::create):
Source/WTF:
Add trace point codes for start and end of injected bundle creation.
* wtf/SystemTracing.h:
Tools:
Add injected bundle signposts to .plist file.
* Tracing/SystemTracePoints.plist:
Modified Paths
Diff
Modified: trunk/Source/WTF/ChangeLog (274485 => 274486)
--- trunk/Source/WTF/ChangeLog 2021-03-16 16:53:47 UTC (rev 274485)
+++ trunk/Source/WTF/ChangeLog 2021-03-16 16:57:35 UTC (rev 274486)
@@ -1,3 +1,14 @@
+2021-03-16 Per Arne <pvol...@apple.com>
+
+ Add signpost for injected bundle creation
+ https://bugs.webkit.org/show_bug.cgi?id=223068
+
+ Reviewed by Alex Christensen.
+
+ Add trace point codes for start and end of injected bundle creation.
+
+ * wtf/SystemTracing.h:
+
2021-03-16 Carlos Garcia Campos <cgar...@igalia.com>
[GTK][WPE] Stop using g_memdup
Modified: trunk/Source/WTF/wtf/SystemTracing.h (274485 => 274486)
--- trunk/Source/WTF/wtf/SystemTracing.h 2021-03-16 16:53:47 UTC (rev 274485)
+++ trunk/Source/WTF/wtf/SystemTracing.h 2021-03-16 16:57:35 UTC (rev 274486)
@@ -116,6 +116,8 @@
LayerTreeFreezeEnd,
FlushRemoteImageBufferStart,
FlushRemoteImageBufferEnd,
+ CreateInjectedBundleStart,
+ CreateInjectedBundleEnd,
UIProcessRange = 14000,
CommitLayerTreeStart,
Modified: trunk/Source/WebKit/ChangeLog (274485 => 274486)
--- trunk/Source/WebKit/ChangeLog 2021-03-16 16:53:47 UTC (rev 274485)
+++ trunk/Source/WebKit/ChangeLog 2021-03-16 16:57:35 UTC (rev 274486)
@@ -1,3 +1,15 @@
+2021-03-16 Per Arne <pvol...@apple.com>
+
+ Add signpost for injected bundle creation
+ https://bugs.webkit.org/show_bug.cgi?id=223068
+
+ Reviewed by Alex Christensen.
+
+ Emit signposts for creation of injected bundle.
+
+ * WebProcess/InjectedBundle/InjectedBundle.cpp:
+ (WebKit::InjectedBundle::create):
+
2021-03-16 Carlos Garcia Campos <cgar...@igalia.com>
[GTK][WPE] Stop using g_memdup
Modified: trunk/Source/WebKit/WebProcess/InjectedBundle/InjectedBundle.cpp (274485 => 274486)
--- trunk/Source/WebKit/WebProcess/InjectedBundle/InjectedBundle.cpp 2021-03-16 16:53:47 UTC (rev 274485)
+++ trunk/Source/WebKit/WebProcess/InjectedBundle/InjectedBundle.cpp 2021-03-16 16:57:35 UTC (rev 274486)
@@ -81,6 +81,7 @@
#include <WebCore/UserScript.h>
#include <WebCore/UserStyleSheet.h>
#include <wtf/ProcessPrivilege.h>
+#include <wtf/SystemTracing.h>
#if ENABLE(NOTIFICATIONS)
#include "WebNotificationManager.h"
@@ -92,6 +93,8 @@
RefPtr<InjectedBundle> InjectedBundle::create(WebProcessCreationParameters& parameters, API::Object* initializationUserData)
{
+ TraceScope scope(TracePointCode::CreateInjectedBundleStart, TracePointCode::CreateInjectedBundleEnd);
+
auto bundle = adoptRef(*new InjectedBundle(parameters));
bundle->m_sandboxExtension = SandboxExtension::create(WTFMove(parameters.injectedBundlePathExtensionHandle));
Modified: trunk/Tools/ChangeLog (274485 => 274486)
--- trunk/Tools/ChangeLog 2021-03-16 16:53:47 UTC (rev 274485)
+++ trunk/Tools/ChangeLog 2021-03-16 16:57:35 UTC (rev 274486)
@@ -1,3 +1,14 @@
+2021-03-16 Per Arne <pvol...@apple.com>
+
+ Add signpost for injected bundle creation
+ https://bugs.webkit.org/show_bug.cgi?id=223068
+
+ Reviewed by Alex Christensen.
+
+ Add injected bundle signposts to .plist file.
+
+ * Tracing/SystemTracePoints.plist:
+
2021-03-16 Jonathan Bedard <jbed...@apple.com>
[webkitscmpy] Decode multiple commit representations
Modified: trunk/Tools/Tracing/SystemTracePoints.plist (274485 => 274486)
--- trunk/Tools/Tracing/SystemTracePoints.plist 2021-03-16 16:53:47 UTC (rev 274485)
+++ trunk/Tools/Tracing/SystemTracePoints.plist 2021-03-16 16:57:35 UTC (rev 274486)
@@ -471,6 +471,18 @@
</dict>
<dict>
<key>Name</key>
+ <string>Create injected bundle</string>
+ <key>Type</key>
+ <string>Interval</string>
+ <key>Component</key>
+ <string>47</string>
+ <key>CodeBegin</key>
+ <string>12017</string>
+ <key>CodeEnd</key>
+ <string>12018</string>
+ </dict>
+ <dict>
+ <key>Name</key>
<string>Commit RemoteLayerTree transaction</string>
<key>Type</key>
<string>Interval</string>
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes