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

Changeset 254580 in webkit


Ignore:
Timestamp:
Jan 15, 2020, 11:14:14 AM (7 years ago)
Author:
Alan Coon
Message:

Cherry-pick r254033. rdar://problem/58548645

Reformat WebPage logging
​https://bugs.webkit.org/show_bug.cgi?id=205705
<rdar://problem/58288704>

Reviewed by Alex Christensen.

Update the format used by WebPage in its RELEASE_LOG logging. Use the
format used by WebPageProxy and NetworkResourceLoader, which is
generally of the form:

<object-address> - [<values that help thread together operations>] <class>::<method>: <message and other useful values>

So, for example:

0x7f83ba009208 - WebPage (webPageID=15) - Adding a reason 1 to freeze layer tree (now 1); old reasons were 0

becomes:

0x7f83ba009208 - [webPageID=15] WebPage::freezeLayerTree: Adding a reason to freeze layer tree (reason=1, new=1, old=0)

No new tests - no added or changed functionality.

  • WebProcess/WebPage/WebPage.cpp: (WebKit::m_overriddenMediaType): (WebKit::WebPage::createPlugin): (WebKit::WebPage::freezeLayerTree): (WebKit::WebPage::unfreezeLayerTree): (WebKit::WebPage::markLayersVolatile): (WebKit::WebPage::cancelMarkLayersVolatile): (WebKit::WebPage::touchEventSync):

git-svn-id: ​https://svn.webkit.org/repository/webkit/trunk@254033 268f45cc-cd09-0410-ab3c-d52691b4dbfc

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

Legend:

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

    r254474 r254580  
     12020-01-14  Alan Coon  <alancoon@apple.com>
     2
     3        Cherry-pick r254033. rdar://problem/58548645
     4
     5    Reformat WebPage logging
     6    https://bugs.webkit.org/show_bug.cgi?id=205705
     7    <rdar://problem/58288704>
     8   
     9    Reviewed by Alex Christensen.
     10   
     11    Update the format used by WebPage in its RELEASE_LOG logging. Use the
     12    format used by WebPageProxy and NetworkResourceLoader, which is
     13    generally of the form:
     14   
     15        <object-address> - [<values that help thread together operations>] <class>::<method>: <message and other useful values>
     16   
     17    So, for example:
     18   
     19        0x7f83ba009208 - WebPage (webPageID=15) - Adding a reason 1 to freeze layer tree (now 1); old reasons were 0
     20   
     21    becomes:
     22   
     23        0x7f83ba009208 - [webPageID=15] WebPage::freezeLayerTree: Adding a reason to freeze layer tree (reason=1, new=1, old=0)
     24   
     25    No new tests - no added or changed functionality.
     26   
     27    * WebProcess/WebPage/WebPage.cpp:
     28    (WebKit::m_overriddenMediaType):
     29    (WebKit::WebPage::createPlugin):
     30    (WebKit::WebPage::freezeLayerTree):
     31    (WebKit::WebPage::unfreezeLayerTree):
     32    (WebKit::WebPage::markLayersVolatile):
     33    (WebKit::WebPage::cancelMarkLayersVolatile):
     34    (WebKit::WebPage::touchEventSync):
     35   
     36   
     37    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@254033 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     38
     39    2020-01-04  Keith Rollin  <krollin@apple.com>
     40
     41            Reformat WebPage logging
     42            https://bugs.webkit.org/show_bug.cgi?id=205705
     43            <rdar://problem/58288704>
     44
     45            Reviewed by Alex Christensen.
     46
     47            Update the format used by WebPage in its RELEASE_LOG logging. Use the
     48            format used by WebPageProxy and NetworkResourceLoader, which is
     49            generally of the form:
     50
     51                <object-address> - [<values that help thread together operations>] <class>::<method>: <message and other useful values>
     52
     53            So, for example:
     54
     55                0x7f83ba009208 - WebPage (webPageID=15) - Adding a reason 1 to freeze layer tree (now 1); old reasons were 0
     56
     57            becomes:
     58
     59                0x7f83ba009208 - [webPageID=15] WebPage::freezeLayerTree: Adding a reason to freeze layer tree (reason=1, new=1, old=0)
     60
     61            No new tests - no added or changed functionality.
     62
     63            * WebProcess/WebPage/WebPage.cpp:
     64            (WebKit::m_overriddenMediaType):
     65            (WebKit::WebPage::createPlugin):
     66            (WebKit::WebPage::freezeLayerTree):
     67            (WebKit::WebPage::unfreezeLayerTree):
     68            (WebKit::WebPage::markLayersVolatile):
     69            (WebKit::WebPage::cancelMarkLayersVolatile):
     70            (WebKit::WebPage::touchEventSync):
     71
    1722020-01-13  Alan Coon  <alancoon@apple.com>
    273
  • branches/safari-609-branch/Source/WebKit/WebProcess/WebPage/WebPage.cpp

    r253978 r254580  
    326326static const Seconds maximumLayerVolatilityTimerInterval { 2_s };
    327327
    328 #define RELEASE_LOG_IF_ALLOWED(channel, fmt, ...) RELEASE_LOG_IF(isAlwaysOnLoggingAllowed(), channel, "%p - WebPage::" fmt, this, ##__VA_ARGS__)
    329 #define RELEASE_LOG_ERROR_IF_ALLOWED(channel, fmt, ...) RELEASE_LOG_ERROR_IF(isAlwaysOnLoggingAllowed(), channel, "%p - WebPage::" fmt, this, ##__VA_ARGS__)
     328#define RELEASE_LOG_IF_ALLOWED(channel, fmt, ...) RELEASE_LOG_IF(isAlwaysOnLoggingAllowed(), channel, "%p - [webPageID=%" PRIu64 "] WebPage::" fmt, this, m_identifier.toUInt64(), ##__VA_ARGS__)
     329#define RELEASE_LOG_ERROR_IF_ALLOWED(channel, fmt, ...) RELEASE_LOG_ERROR_IF(isAlwaysOnLoggingAllowed(), channel, "%p - [webPageID=%" PRIu64 "] WebPage::" fmt, this, m_identifier.toUInt64(), ##__VA_ARGS__)
    330330
    331331class SendStopResponsivenessTimer {
    … …  
    703703        m_canShowWhileLocked
    704704    });
    705     RELEASE_LOG(Process, "Created context with ID %d for visibility propagation from UIProcess", m_contextForVisibilityPropagation->contextID());
     705    RELEASE_LOG_IF_ALLOWED(Process, "WebPage: Created context with ID %d for visibility propagation from UIProcess", m_contextForVisibilityPropagation->contextID());
    706706    send(Messages::WebPageProxy::DidCreateContextForVisibilityPropagation(m_contextForVisibilityPropagation->contextID()));
    707707#endif
    … …  
    10011001
    10021002    if (m_page->settings().blockingOfSmallPluginsEnabled() && pluginIsSmall(*pluginElement)) {
    1003         RELEASE_LOG(Plugins, "Blocking a plugin because it is too small");
     1003        RELEASE_LOG_IF_ALLOWED(Plugins, "createPlugin: Blocking a plugin because it is too small");
    10041004        pluginElement->setReplacement(RenderEmbeddedObject::PluginTooSmall, pluginTooSmallText());
    10051005        return nullptr;
    … …  
    25272527    UNUSED_PARAM(oldReasons);
    25282528    m_layerTreeFreezeReasons.add(reason);
    2529     RELEASE_LOG(ProcessSuspension, "%p - WebPage (webPageID=%llu) - Adding a reason %d to freeze layer tree (now %d); old reasons were %d", this, m_identifier.toUInt64(), static_cast<unsigned>(reason), m_layerTreeFreezeReasons.toRaw(), oldReasons);
     2529    RELEASE_LOG_IF_ALLOWED(ProcessSuspension, "freezeLayerTree: Adding a reason to freeze layer tree (reason=%d, new=%d, old=%d)", static_cast<unsigned>(reason), m_layerTreeFreezeReasons.toRaw(), oldReasons);
    25302530    updateDrawingAreaLayerTreeFreezeState();
    25312531}
    … …  
    25362536    UNUSED_PARAM(oldReasons);
    25372537    m_layerTreeFreezeReasons.remove(reason);
    2538     RELEASE_LOG(ProcessSuspension, "%p - WebPage (webPageID=%llu) - Removing a reason %d to freeze layer tree (now %d); old reasons were %d", this, m_identifier.toUInt64(), static_cast<unsigned>(reason), m_layerTreeFreezeReasons.toRaw(), oldReasons);
     2538    RELEASE_LOG_IF_ALLOWED(ProcessSuspension, "unfreezeLayerTree: Removing a reason to freeze layer tree (reason=%d, new=%d, old=%d)", static_cast<unsigned>(reason), m_layerTreeFreezeReasons.toRaw(), oldReasons);
    25392539    updateDrawingAreaLayerTreeFreezeState();
    25402540}
    … …  
    25792579void WebPage::markLayersVolatile(WTF::Function<void (bool)>&& completionHandler)
    25802580{
    2581     RELEASE_LOG_IF_ALLOWED(Layers, "markLayersVolatile");
     2581    RELEASE_LOG_IF_ALLOWED(Layers, "markLayersVolatile:");
    25822582
    25832583    if (m_layerVolatilityTimer.isActive())
    … …  
    26052605void WebPage::cancelMarkLayersVolatile()
    26062606{
    2607     RELEASE_LOG_IF_ALLOWED(Layers, "cancelMarkLayersVolatile");
     2607    RELEASE_LOG_IF_ALLOWED(Layers, "cancelMarkLayersVolatile:");
    26082608    m_layerVolatilityTimer.stop();
    26092609    m_markLayersAsVolatileCompletionHandlers.clear();
    … …  
    29132913    // Avoid UIProcess hangs when the WebContent process is stuck on a sync IPC.
    29142914    if (IPC::UnboundedSynchronousIPCScope::hasOngoingUnboundedSyncIPC()) {
    2915         RELEASE_LOG_ERROR_IF_ALLOWED(Process, "touchEventSync - Not processing because the process is stuck on unbounded sync IPC");
     2915        RELEASE_LOG_ERROR_IF_ALLOWED(Process, "touchEventSync: Not processing because the process is stuck on unbounded sync IPC");
    29162916        return reply(true);
    29172917    }
Note: See TracChangeset for help on using the changeset viewer.