⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 295186 in webkit


Ignore:
Timestamp:
Jun 2, 2022, 11:45:35 PM (4 years ago)
Author:
Alan Coon
Message:

Cherry-pick 9a7e68adec7a. rdar://problem/93329781

Add logging when taking a process assertion synchronously
​https://bugs.webkit.org/show_bug.cgi?id=240334

Reviewed by Chris Dumez.

No observable change of behavior.

  • UIProcess/ios/ProcessAssertionIOS.mm: (WebKit::ProcessAssertion::acquireSync):

Canonical link: ​https://commits.webkit.org/250580@main
git-svn-id: ​https://svn.webkit.org/repository/webkit/trunk@294222 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-613-branch/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-613-branch/Source/WebKit/ChangeLog

    r295177 r295186  
     12022-05-16  Youenn Fablet  <youenn@apple.com>
     2
     3        Add logging when taking a process assertion synchronously
     4        https://bugs.webkit.org/show_bug.cgi?id=240334
     5
     6        Reviewed by Chris Dumez.
     7
     8        No observable change of behavior.
     9
     10        * UIProcess/ios/ProcessAssertionIOS.mm:
     11        (WebKit::ProcessAssertion::acquireSync):
     12
    1132022-04-14  Wenson Hsieh  <wenson_hsieh@apple.com>
    214
  • branches/safari-613-branch/Source/WebKit/UIProcess/ios/ProcessAssertionIOS.mm

    r295180 r295186  
    368368void ProcessAssertion::acquireSync()
    369369{
     370    RELEASE_LOG(ProcessSuspension, "%p - ProcessAssertion::acquireSync Trying to take RBS assertion '%{public}s' for process with PID=%d", this, m_reason.utf8().data(), m_pid);
     371
    370372    NSError *acquisitionError = nil;
    371373    if (![m_rbsAssertion acquireWithError:&acquisitionError]) {
    372         RELEASE_LOG_ERROR(ProcessSuspension, "%p - ProcessAssertion: Failed to acquire RBS assertion '%{public}s' for process with PID=%d, error: %{public}@", this, m_reason.utf8().data(), m_pid, acquisitionError);
     374        RELEASE_LOG_ERROR(ProcessSuspension, "%p - ProcessAssertion::acquireSync Failed to acquire RBS assertion '%{public}s' for process with PID=%d, error: %{public}@", this, m_reason.utf8().data(), m_pid, acquisitionError);
    373375        RunLoop::main().dispatch([weakThis = WeakPtr { *this }] {
    374376            if (weakThis)
    … …  
    376378        });
    377379    } else
    378         RELEASE_LOG(ProcessSuspension, "%p - ProcessAssertion: Successfully took RBS assertion '%{public}s' for process with PID=%d", this, m_reason.utf8().data(), m_pid);
     380        RELEASE_LOG(ProcessSuspension, "%p - ProcessAssertion::acquireSync Successfully took RBS assertion '%{public}s' for process with PID=%d", this, m_reason.utf8().data(), m_pid);
    379381}
    380382
Note: See TracChangeset for help on using the changeset viewer.