Changeset 254580 in webkit
- Timestamp:
- Jan 15, 2020, 11:14:14 AM (7 years ago)
- Location:
- branches/safari-609-branch/Source/WebKit
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
WebProcess/WebPage/WebPage.cpp (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-609-branch/Source/WebKit/ChangeLog
r254474 r254580 1 2020-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 1 72 2020-01-13 Alan Coon <alancoon@apple.com> 2 73 -
branches/safari-609-branch/Source/WebKit/WebProcess/WebPage/WebPage.cpp
r253978 r254580 326 326 static const Seconds maximumLayerVolatilityTimerInterval { 2_s }; 327 327 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__) 330 330 331 331 class SendStopResponsivenessTimer { … … 703 703 m_canShowWhileLocked 704 704 }); 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()); 706 706 send(Messages::WebPageProxy::DidCreateContextForVisibilityPropagation(m_contextForVisibilityPropagation->contextID())); 707 707 #endif … … 1001 1001 1002 1002 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"); 1004 1004 pluginElement->setReplacement(RenderEmbeddedObject::PluginTooSmall, pluginTooSmallText()); 1005 1005 return nullptr; … … 2527 2527 UNUSED_PARAM(oldReasons); 2528 2528 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); 2530 2530 updateDrawingAreaLayerTreeFreezeState(); 2531 2531 } … … 2536 2536 UNUSED_PARAM(oldReasons); 2537 2537 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); 2539 2539 updateDrawingAreaLayerTreeFreezeState(); 2540 2540 } … … 2579 2579 void WebPage::markLayersVolatile(WTF::Function<void (bool)>&& completionHandler) 2580 2580 { 2581 RELEASE_LOG_IF_ALLOWED(Layers, "markLayersVolatile ");2581 RELEASE_LOG_IF_ALLOWED(Layers, "markLayersVolatile:"); 2582 2582 2583 2583 if (m_layerVolatilityTimer.isActive()) … … 2605 2605 void WebPage::cancelMarkLayersVolatile() 2606 2606 { 2607 RELEASE_LOG_IF_ALLOWED(Layers, "cancelMarkLayersVolatile ");2607 RELEASE_LOG_IF_ALLOWED(Layers, "cancelMarkLayersVolatile:"); 2608 2608 m_layerVolatilityTimer.stop(); 2609 2609 m_markLayersAsVolatileCompletionHandlers.clear(); … … 2913 2913 // Avoid UIProcess hangs when the WebContent process is stuck on a sync IPC. 2914 2914 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"); 2916 2916 return reply(true); 2917 2917 }
Note:
See TracChangeset
for help on using the changeset viewer.