|
Lines 1214-1227
void WebProcessProxy::didExceedInactiveMemoryLimitWhileActive()
a/Source/WebKit2/UIProcess/WebProcessProxy.cpp_sec1
|
| 1214 |
|
1214 |
|
| 1215 |
void WebProcessProxy::didExceedActiveMemoryLimit() |
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 |
logDiagnosticMessageForResourceLimitTermination(DiagnosticLoggingKeys::exceededActiveMemoryLimitKey()); |
1218 |
logDiagnosticMessageForResourceLimitTermination(DiagnosticLoggingKeys::exceededActiveMemoryLimitKey()); |
| 1219 |
requestTermination(ProcessTerminationReason::ExceededMemoryLimit); |
1219 |
requestTermination(ProcessTerminationReason::ExceededMemoryLimit); |
| 1220 |
} |
1220 |
} |
| 1221 |
|
1221 |
|
| 1222 |
void WebProcessProxy::didExceedInactiveMemoryLimit() |
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 |
logDiagnosticMessageForResourceLimitTermination(DiagnosticLoggingKeys::exceededInactiveMemoryLimitKey()); |
1225 |
logDiagnosticMessageForResourceLimitTermination(DiagnosticLoggingKeys::exceededInactiveMemoryLimitKey()); |
| 1226 |
requestTermination(ProcessTerminationReason::ExceededMemoryLimit); |
1226 |
requestTermination(ProcessTerminationReason::ExceededMemoryLimit); |
| 1227 |
} |
1227 |
} |
|
Lines 1230-1241
void WebProcessProxy::didExceedCPULimit()
a/Source/WebKit2/UIProcess/WebProcessProxy.cpp_sec2
|
| 1230 |
{ |
1230 |
{ |
| 1231 |
for (auto& page : pages()) { |
1231 |
for (auto& page : pages()) { |
| 1232 |
if (page->isPlayingAudio()) { |
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 |
return; |
1234 |
return; |
| 1235 |
} |
1235 |
} |
| 1236 |
|
1236 |
|
| 1237 |
if (page->hasActiveAudioStream() || page->hasActiveVideoStream()) { |
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 |
return; |
1239 |
return; |
| 1240 |
} |
1240 |
} |
| 1241 |
} |
1241 |
} |
|
Lines 1252-1258
void WebProcessProxy::didExceedCPULimit()
a/Source/WebKit2/UIProcess/WebProcessProxy.cpp_sec3
|
| 1252 |
if (hasVisiblePage) |
1252 |
if (hasVisiblePage) |
| 1253 |
return; |
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 |
logDiagnosticMessageForResourceLimitTermination(DiagnosticLoggingKeys::exceededBackgroundCPULimitKey()); |
1256 |
logDiagnosticMessageForResourceLimitTermination(DiagnosticLoggingKeys::exceededBackgroundCPULimitKey()); |
| 1257 |
requestTermination(ProcessTerminationReason::ExceededCPULimit); |
1257 |
requestTermination(ProcessTerminationReason::ExceededCPULimit); |
| 1258 |
} |
1258 |
} |