Changeset 293893 in webkit
- Timestamp:
- May 6, 2022 8:58:40 AM (2 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r293892 r293893 1 2022-05-06 Per Arne Vollan <pvollan@apple.com> 2 3 Create reports for long process launch times 4 https://bugs.webkit.org/show_bug.cgi?id=240127 5 6 Reviewed by Yusuke Suzuki. 7 8 We have reports that it can take a long time to launch WebKit processes in some cases. This is the time 9 it takes from the XPC message is sent until the XPC reply is received. Add reporting when this happens 10 in order to help diagnose the issue. 11 12 * UIProcess/AuxiliaryProcessProxy.cpp: 13 (WebKit::AuxiliaryProcessProxy::connect): 14 (WebKit::AuxiliaryProcessProxy::didFinishLaunching): 15 * UIProcess/AuxiliaryProcessProxy.h: 16 1 17 2022-05-06 Per Arne Vollan <pvollan@apple.com> 2 18 -
trunk/Source/WebKit/UIProcess/AuxiliaryProcessProxy.cpp
r293266 r293893 109 109 { 110 110 ASSERT(!m_processLauncher); 111 m_proccessStart = MonotonicTime::now(); 111 112 ProcessLauncher::LaunchOptions launchOptions; 112 113 getLaunchOptions(launchOptions); … … 258 259 ASSERT(isMainRunLoop()); 259 260 261 auto launchTime = MonotonicTime::now() - m_proccessStart; 262 if (launchTime > 1_s) 263 RELEASE_LOG_FAULT(Process, "%s process (%p) took %f seconds to launch", processName().characters(), this, launchTime.value()); 264 260 265 if (!IPC::Connection::identifierIsValid(connectionIdentifier)) 261 266 return; -
trunk/Source/WebKit/UIProcess/AuxiliaryProcessProxy.h
r291946 r293893 188 188 WebCore::ProcessIdentifier m_processIdentifier { WebCore::ProcessIdentifier::generate() }; 189 189 std::optional<UseLazyStop> m_delayedResponsivenessCheck; 190 MonotonicTime m_proccessStart; 190 191 }; 191 192
Note: See TracChangeset
for help on using the changeset viewer.