Changeset 218201 in webkit


Ignore:
Timestamp:
Jun 13, 2017 1:58:15 PM (7 years ago)
Author:
Chris Dumez
Message:

Include PID in some UIProcess-side release logging that relates to a particular WebProcess
https://bugs.webkit.org/show_bug.cgi?id=173299

Reviewed by Ryosuke Niwa.

  • UIProcess/BackgroundProcessResponsivenessTimer.cpp:

(WebKit::BackgroundProcessResponsivenessTimer::setResponsive):

  • UIProcess/WebProcessProxy.cpp:

(WebKit::WebProcessProxy::didExceedActiveMemoryLimit):
(WebKit::WebProcessProxy::didExceedInactiveMemoryLimit):
(WebKit::WebProcessProxy::didExceedCPULimit):

Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r218196 r218201  
     12017-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
    1152017-06-13  Daniel Bates  <dabates@apple.com>
    216
  • trunk/Source/WebKit2/UIProcess/BackgroundProcessResponsivenessTimer.cpp

    r217617 r218201  
    122122
    123123    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());
    125125        client().didBecomeResponsive();
    126126    } 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());
    128128        client().didBecomeUnresponsive();
    129129    }
  • trunk/Source/WebKit2/UIProcess/WebProcessProxy.cpp

    r218011 r218201  
    12151215void WebProcessProxy::didExceedActiveMemoryLimit()
    12161216{
    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());
    12181218    logDiagnosticMessageForResourceLimitTermination(DiagnosticLoggingKeys::exceededActiveMemoryLimitKey());
    12191219    requestTermination(ProcessTerminationReason::ExceededMemoryLimit);
     
    12221222void WebProcessProxy::didExceedInactiveMemoryLimit()
    12231223{
    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());
    12251225    logDiagnosticMessageForResourceLimitTermination(DiagnosticLoggingKeys::exceededInactiveMemoryLimitKey());
    12261226    requestTermination(ProcessTerminationReason::ExceededMemoryLimit);
     
    12311231    for (auto& page : pages()) {
    12321232        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());
    12341234            return;
    12351235        }
    12361236
    12371237        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());
    12391239            return;
    12401240        }
     
    12531253        return;
    12541254
    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());
    12561256    logDiagnosticMessageForResourceLimitTermination(DiagnosticLoggingKeys::exceededBackgroundCPULimitKey());
    12571257    requestTermination(ProcessTerminationReason::ExceededCPULimit);
Note: See TracChangeset for help on using the changeset viewer.