Changeset 218201 in webkit
- Timestamp:
- Jun 13, 2017 1:58:15 PM (7 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r218196 r218201 1 2017-06-13 Chris Dumez <cdumez@apple.com> 2 3 Include PID in some UIProcess-side release logging that relates to a particular WebProcess 4 https://bugs.webkit.org/show_bug.cgi?id=173299 5 6 Reviewed by Ryosuke Niwa. 7 8 * UIProcess/BackgroundProcessResponsivenessTimer.cpp: 9 (WebKit::BackgroundProcessResponsivenessTimer::setResponsive): 10 * UIProcess/WebProcessProxy.cpp: 11 (WebKit::WebProcessProxy::didExceedActiveMemoryLimit): 12 (WebKit::WebProcessProxy::didExceedInactiveMemoryLimit): 13 (WebKit::WebProcessProxy::didExceedCPULimit): 14 1 15 2017-06-13 Daniel Bates <dabates@apple.com> 2 16 -
trunk/Source/WebKit2/UIProcess/BackgroundProcessResponsivenessTimer.cpp
r217617 r218201 122 122 123 123 if (m_isResponsive) { 124 RELEASE_LOG_ERROR(PerformanceLogging, "Notifying the client that a background WebProcess has become responsive again");124 RELEASE_LOG_ERROR(PerformanceLogging, "Notifying the client that background WebProcess with pid %d has become responsive again", m_webProcessProxy.processIdentifier()); 125 125 client().didBecomeResponsive(); 126 126 } else { 127 RELEASE_LOG_ERROR(PerformanceLogging, "Notifying the client that a background WebProcess has become unresponsive");127 RELEASE_LOG_ERROR(PerformanceLogging, "Notifying the client that background WebProcess with pid %d has become unresponsive", m_webProcessProxy.processIdentifier()); 128 128 client().didBecomeUnresponsive(); 129 129 } -
trunk/Source/WebKit2/UIProcess/WebProcessProxy.cpp
r218011 r218201 1215 1215 void WebProcessProxy::didExceedActiveMemoryLimit() 1216 1216 { 1217 RELEASE_LOG_ERROR(PerformanceLogging, "%p - WebProcessProxy::didExceedActiveMemoryLimit() Terminating WebProcess that has exceeded the active memory limit", this);1217 RELEASE_LOG_ERROR(PerformanceLogging, "%p - WebProcessProxy::didExceedActiveMemoryLimit() Terminating WebProcess with pid %d that has exceeded the active memory limit", this, processIdentifier()); 1218 1218 logDiagnosticMessageForResourceLimitTermination(DiagnosticLoggingKeys::exceededActiveMemoryLimitKey()); 1219 1219 requestTermination(ProcessTerminationReason::ExceededMemoryLimit); … … 1222 1222 void WebProcessProxy::didExceedInactiveMemoryLimit() 1223 1223 { 1224 RELEASE_LOG_ERROR(PerformanceLogging, "%p - WebProcessProxy::didExceedInactiveMemoryLimit() Terminating WebProcess that has exceeded the inactive memory limit", this);1224 RELEASE_LOG_ERROR(PerformanceLogging, "%p - WebProcessProxy::didExceedInactiveMemoryLimit() Terminating WebProcess with pid %d that has exceeded the inactive memory limit", this, processIdentifier()); 1225 1225 logDiagnosticMessageForResourceLimitTermination(DiagnosticLoggingKeys::exceededInactiveMemoryLimitKey()); 1226 1226 requestTermination(ProcessTerminationReason::ExceededMemoryLimit); … … 1231 1231 for (auto& page : pages()) { 1232 1232 if (page->isPlayingAudio()) { 1233 RELEASE_LOG(PerformanceLogging, "%p - WebProcessProxy::didExceedCPULimit() WebProcess has exceeded the background CPU limit but we are not terminating it because there is audio playing", this);1233 RELEASE_LOG(PerformanceLogging, "%p - WebProcessProxy::didExceedCPULimit() WebProcess with pid %d has exceeded the background CPU limit but we are not terminating it because there is audio playing", this, processIdentifier()); 1234 1234 return; 1235 1235 } 1236 1236 1237 1237 if (page->hasActiveAudioStream() || page->hasActiveVideoStream()) { 1238 RELEASE_LOG(PerformanceLogging, "%p - WebProcessProxy::didExceedCPULimit() WebProcess has exceeded the background CPU limit but we are not terminating it because it is capturing audio / video", this);1238 RELEASE_LOG(PerformanceLogging, "%p - WebProcessProxy::didExceedCPULimit() WebProcess with pid %d has exceeded the background CPU limit but we are not terminating it because it is capturing audio / video", this, processIdentifier()); 1239 1239 return; 1240 1240 } … … 1253 1253 return; 1254 1254 1255 RELEASE_LOG_ERROR(PerformanceLogging, "%p - WebProcessProxy::didExceedCPULimit() Terminating background WebProcess that has exceeded the background CPU limit", this);1255 RELEASE_LOG_ERROR(PerformanceLogging, "%p - WebProcessProxy::didExceedCPULimit() Terminating background WebProcess with pid %d that has exceeded the background CPU limit", this, processIdentifier()); 1256 1256 logDiagnosticMessageForResourceLimitTermination(DiagnosticLoggingKeys::exceededBackgroundCPULimitKey()); 1257 1257 requestTermination(ProcessTerminationReason::ExceededCPULimit);
Note: See TracChangeset
for help on using the changeset viewer.