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/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();
}
}