Add system trace points for process launch and for initializeWebProcess
https://bugs.webkit.org/show_bug.cgi?id=184669
Reviewed by Simon Fraser.
Source/JavaScriptCore:
* runtime/VMEntryScope.cpp:
(JSC::VMEntryScope::VMEntryScope):
(JSC::VMEntryScope::~VMEntryScope):
Source/WebCore:
No testing needed because there is no new functionality here.
* loader/FrameLoader.cpp:
(WebCore::FrameLoader::provisionalLoadStarted):
(WebCore::FrameLoader::checkLoadCompleteForThisFrame):
* loader/SubresourceLoader.cpp:
(WebCore::SubresourceLoader::willSendRequestInternal):
(WebCore::SubresourceLoader::didFinishLoading):
(WebCore::SubresourceLoader::didFail):
(WebCore::SubresourceLoader::didCancel):
Source/WebKit:
* UIProcess/Launcher/ProcessLauncher.cpp:
(WebKit::ProcessLauncher::ProcessLauncher):
(WebKit::ProcessLauncher::didFinishLaunchingProcess):
* WebProcess/WebProcess.cpp:
(WebKit::WebProcess::initializeWebProcess):
Source/WTF:
This patch adds TracePointCodes to measure process launch time and
WebProcess::initializeWebProcess time.
It also renames the TracePoint function to tracePoint since WebKit style
does not capitalize the first letter in function names.
* wtf/SystemTracing.h:
(WTF::tracePoint):
(WTF::TraceScope::TraceScope):
(WTF::TraceScope::~TraceScope):
(WTF::TracePoint): Deleted.
Tools:
* Tracing/SystemTracePoints.plist:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@230711 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/WebCore/ChangeLog b/Source/WebCore/ChangeLog
index d79e202..4dddd0e 100644
--- a/Source/WebCore/ChangeLog
+++ b/Source/WebCore/ChangeLog
@@ -1,3 +1,21 @@
+2018-04-17 Saam Barati <sbarati@apple.com>
+
+ Add system trace points for process launch and for initializeWebProcess
+ https://bugs.webkit.org/show_bug.cgi?id=184669
+
+ Reviewed by Simon Fraser.
+
+ No testing needed because there is no new functionality here.
+
+ * loader/FrameLoader.cpp:
+ (WebCore::FrameLoader::provisionalLoadStarted):
+ (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
+ * loader/SubresourceLoader.cpp:
+ (WebCore::SubresourceLoader::willSendRequestInternal):
+ (WebCore::SubresourceLoader::didFinishLoading):
+ (WebCore::SubresourceLoader::didFail):
+ (WebCore::SubresourceLoader::didCancel):
+
2018-04-17 Eric Carlson <eric.carlson@apple.com>
[iOS] AirPlay device name is sometimes wrong
diff --git a/Source/WebCore/loader/FrameLoader.cpp b/Source/WebCore/loader/FrameLoader.cpp
index 9fb15b3..759a4ce 100644
--- a/Source/WebCore/loader/FrameLoader.cpp
+++ b/Source/WebCore/loader/FrameLoader.cpp
@@ -1031,7 +1031,7 @@
m_client.provisionalLoadStarted();
if (m_frame.isMainFrame()) {
- TracePoint(MainResourceLoadDidStartProvisional);
+ tracePoint(MainResourceLoadDidStartProvisional);
if (auto* page = m_frame.page())
page->didStartProvisionalLoad();
@@ -2400,7 +2400,7 @@
Page* page = m_frame.page();
if (page) {
if (m_frame.isMainFrame()) {
- TracePoint(MainResourceLoadDidEnd);
+ tracePoint(MainResourceLoadDidEnd);
page->didFinishLoad();
}
}
diff --git a/Source/WebCore/loader/SubresourceLoader.cpp b/Source/WebCore/loader/SubresourceLoader.cpp
index 36d65b3..f7d24f2 100644
--- a/Source/WebCore/loader/SubresourceLoader.cpp
+++ b/Source/WebCore/loader/SubresourceLoader.cpp
@@ -182,7 +182,7 @@
}
if (newRequest.requester() != ResourceRequestBase::Requester::Main) {
- TracePoint(SubresourceLoadWillStart);
+ tracePoint(SubresourceLoadWillStart);
ResourceLoadObserver::shared().logSubresourceLoading(m_frame.get(), newRequest, redirectResponse);
}
@@ -630,7 +630,7 @@
}
if (m_resource->type() != CachedResource::MainResource)
- TracePoint(SubresourceLoadDidEnd);
+ tracePoint(SubresourceLoadDidEnd);
m_state = Finishing;
m_resource->finishLoading(resourceData());
@@ -665,7 +665,7 @@
m_state = Finishing;
if (m_resource->type() != CachedResource::MainResource)
- TracePoint(SubresourceLoadDidEnd);
+ tracePoint(SubresourceLoadDidEnd);
if (m_resource->resourceToRevalidate())
MemoryCache::singleton().revalidationFailed(*m_resource);
@@ -713,7 +713,7 @@
return;
if (m_resource->type() != CachedResource::MainResource)
- TracePoint(SubresourceLoadDidEnd);
+ tracePoint(SubresourceLoadDidEnd);
m_resource->cancelLoad();
notifyDone();