Changeset 280795 in webkit
- Timestamp:
- Aug 9, 2021, 2:14:53 PM (5 years ago)
- Location:
- trunk/Source
- Files:
-
- 6 added
- 32 edited
- 1 copied
-
WTF/ChangeLog (modified) (1 diff)
-
WTF/WTF.xcodeproj/project.pbxproj (modified) (6 diffs)
-
WTF/wtf/Assertions.h (modified) (1 diff)
-
WTF/wtf/CMakeLists.txt (modified) (2 diffs)
-
WTF/wtf/LogInitialization.cpp (added)
-
WTF/wtf/LogInitialization.h (added)
-
WTF/wtf/Logging.cpp (added)
-
WTF/wtf/Logging.h (added)
-
WTF/wtf/MemoryPressureHandler.cpp (modified) (2 diffs)
-
WTF/wtf/MemoryPressureHandler.h (modified) (1 diff)
-
WTF/wtf/PlatformFTW.cmake (modified) (1 diff)
-
WTF/wtf/PlatformGTK.cmake (modified) (1 diff)
-
WTF/wtf/PlatformJSCOnly.cmake (modified) (2 diffs)
-
WTF/wtf/PlatformMac.cmake (modified) (1 diff)
-
WTF/wtf/PlatformPlayStation.cmake (modified) (1 diff)
-
WTF/wtf/PlatformWPE.cmake (modified) (1 diff)
-
WTF/wtf/PlatformWin.cmake (modified) (1 diff)
-
WTF/wtf/RefCountedLeakCounter.cpp (modified) (2 diffs)
-
WTF/wtf/cocoa/LoggingCocoa.mm (copied) (copied from trunk/Source/WebKit/UIProcess/Cocoa/GPUProcessProxyCocoa.mm ) (1 diff)
-
WTF/wtf/cocoa/MachSendRight.cpp (modified) (1 diff)
-
WTF/wtf/cocoa/MainThreadCocoa.mm (modified) (2 diffs)
-
WTF/wtf/cocoa/MemoryPressureHandlerCocoa.mm (modified) (2 diffs)
-
WTF/wtf/unix/LoggingUnix.cpp (added)
-
WTF/wtf/win/LoggingWin.cpp (added)
-
WebKit/ChangeLog (modified) (1 diff)
-
WebKit/GPUProcess/GPUProcess.cpp (modified) (2 diffs)
-
WebKit/GPUProcess/GPUProcessCreationParameters.cpp (modified) (2 diffs)
-
WebKit/GPUProcess/GPUProcessCreationParameters.h (modified) (1 diff)
-
WebKit/Shared/AuxiliaryProcess.cpp (modified) (2 diffs)
-
WebKit/Shared/WebKit2Initialize.cpp (modified) (2 diffs)
-
WebKit/Shared/WebProcessCreationParameters.cpp (modified) (2 diffs)
-
WebKit/Shared/WebProcessCreationParameters.h (modified) (1 diff)
-
WebKit/UIProcess/Cocoa/GPUProcessProxyCocoa.mm (modified) (1 diff)
-
WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm (modified) (1 diff)
-
WebKit/UIProcess/GPU/GPUProcessProxy.cpp (modified) (2 diffs)
-
WebKit/UIProcess/WebProcessPool.cpp (modified) (2 diffs)
-
WebKit/WebProcess/cocoa/WebProcessCocoa.mm (modified) (2 diffs)
-
WebKitLegacy/mac/ChangeLog (modified) (1 diff)
-
WebKitLegacy/mac/WebView/WebView.mm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r280758 r280795 1 2021-08-09 Myles C. Maxfield <mmaxfield@apple.com> 2 3 Support WTF logging channels 4 https://bugs.webkit.org/show_bug.cgi?id=228768 5 6 This patch builds on top of https://bugs.webkit.org/show_bug.cgi?id=228809, which added shared infrastructure 7 for logging. This patch simply triggers that shared infrastructure for WTF. There is no change in behavior - 8 the existing WTF logging channels currently are all implemented independently in custom ways, so this patch 9 just migrates them over to use the shared infrastructure. 10 11 Reviewed by Fujii Hironori. 12 13 * WTF.xcodeproj/project.pbxproj: 14 * wtf/Assertions.h: 15 * wtf/CMakeLists.txt: 16 * wtf/LogInitialization.cpp: Added. 17 (WTF::logChannels): 18 * wtf/LogInitialization.h: Added. 19 * wtf/Logging.cpp: Added. 20 * wtf/Logging.h: Added. 21 * wtf/MemoryPressureHandler.cpp: 22 (WTF::MemoryPressureHandler::singleton): 23 * wtf/MemoryPressureHandler.h: 24 * wtf/PlatformFTW.cmake: 25 * wtf/PlatformGTK.cmake: 26 * wtf/PlatformJSCOnly.cmake: 27 * wtf/PlatformMac.cmake: 28 * wtf/PlatformPlayStation.cmake: 29 * wtf/PlatformWPE.cmake: 30 * wtf/PlatformWin.cmake: 31 * wtf/RefCountedLeakCounter.cpp: 32 * wtf/cocoa/LoggingCocoa.mm: Copied from Source/WebKit/UIProcess/Cocoa/GPUProcessProxyCocoa.mm. 33 (WTF::logLevelString): 34 * wtf/cocoa/MachSendRight.cpp: 35 * wtf/cocoa/MainThreadCocoa.mm: 36 * wtf/cocoa/MemoryPressureHandlerCocoa.mm: 37 * wtf/unix/LoggingUnix.cpp: Added. 38 (WTF::logLevelString): 39 * wtf/win/LoggingWin.cpp: Added. 40 (WTF::logLevelString): 41 1 42 2021-08-07 Myles C. Maxfield <mmaxfield@apple.com> 2 43 -
trunk/Source/WTF/WTF.xcodeproj/project.pbxproj
r280758 r280795 61 61 1C181C961D30800A00F5FA16 /* TextBreakIteratorInternalICUCocoa.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1C181C951D30800A00F5FA16 /* TextBreakIteratorInternalICUCocoa.cpp */; }; 62 62 1C503BE623AAE0AE0072E66B /* LanguageCocoa.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1C503BE523AAE0AE0072E66B /* LanguageCocoa.mm */; }; 63 1C96836426BE74DF00A2A2F9 /* LogInitialization.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1C96836226BE74DF00A2A2F9 /* LogInitialization.cpp */; }; 64 1C96836726BE754600A2A2F9 /* Logging.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1C96836526BE754600A2A2F9 /* Logging.cpp */; }; 65 1C96836926BE76B600A2A2F9 /* LoggingCocoa.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1C96836826BE76B600A2A2F9 /* LoggingCocoa.mm */; }; 63 66 1CA85CA9241B0B260071C2F5 /* RuntimeApplicationChecksCocoa.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1CA85CA8241B0B260071C2F5 /* RuntimeApplicationChecksCocoa.cpp */; }; 64 67 1CF18F3B26BB579E004B1722 /* LogChannels.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1CF18F3926BB579E004B1722 /* LogChannels.cpp */; }; … … 348 351 1C503BE423AADEEA0072E66B /* NSLocaleSPI.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = NSLocaleSPI.h; sourceTree = "<group>"; }; 349 352 1C503BE523AAE0AE0072E66B /* LanguageCocoa.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = LanguageCocoa.mm; sourceTree = "<group>"; }; 353 1C96836226BE74DF00A2A2F9 /* LogInitialization.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = LogInitialization.cpp; sourceTree = "<group>"; }; 354 1C96836326BE74DF00A2A2F9 /* LogInitialization.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = LogInitialization.h; sourceTree = "<group>"; }; 355 1C96836526BE754600A2A2F9 /* Logging.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = Logging.cpp; sourceTree = "<group>"; }; 356 1C96836626BE754600A2A2F9 /* Logging.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Logging.h; sourceTree = "<group>"; }; 357 1C96836826BE76B600A2A2F9 /* LoggingCocoa.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = LoggingCocoa.mm; sourceTree = "<group>"; }; 350 358 1CA85CA7241B0B110071C2F5 /* RuntimeApplicationChecksCocoa.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RuntimeApplicationChecksCocoa.h; sourceTree = "<group>"; }; 351 359 1CA85CA8241B0B260071C2F5 /* RuntimeApplicationChecksCocoa.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = RuntimeApplicationChecksCocoa.cpp; sourceTree = "<group>"; }; … … 1131 1139 077CD86A1FD9CFD200828587 /* Logger.h */, 1132 1140 077CD86B1FD9CFD300828587 /* LoggerHelper.h */, 1141 1C96836526BE754600A2A2F9 /* Logging.cpp */, 1142 1C96836626BE754600A2A2F9 /* Logging.h */, 1133 1143 513E170A1CD7D5BF00E3650B /* LoggingAccumulator.h */, 1134 1144 0F30BA8C1E78708E002CA847 /* LoggingHashID.h */, … … 1136 1146 0F30BA8E1E78708E002CA847 /* LoggingHashSet.h */, 1137 1147 0F30BA8F1E78708E002CA847 /* LoggingHashTraits.h */, 1148 1C96836226BE74DF00A2A2F9 /* LogInitialization.cpp */, 1149 1C96836326BE74DF00A2A2F9 /* LogInitialization.h */, 1138 1150 7A6EBA3220746C33004F9C44 /* MachSendRight.h */, 1139 1151 A8A472C6151A825A004123FF /* MainThread.cpp */, … … 1586 1598 A331D95E21F249F6009F02AA /* FileSystemCocoa.mm */, 1587 1599 1C503BE523AAE0AE0072E66B /* LanguageCocoa.mm */, 1600 1C96836826BE76B600A2A2F9 /* LoggingCocoa.mm */, 1588 1601 7A6EBA3320746C34004F9C44 /* MachSendRight.cpp */, 1589 1602 A8A472C5151A825A004123FF /* MainThreadCocoa.mm */, … … 1746 1759 1CF18F3B26BB579E004B1722 /* LogChannels.cpp in Sources */, 1747 1760 93B5B45122171EEA004B7AA7 /* Logger.cpp in Sources */, 1761 1C96836726BE754600A2A2F9 /* Logging.cpp in Sources */, 1762 1C96836926BE76B600A2A2F9 /* LoggingCocoa.mm in Sources */, 1763 1C96836426BE74DF00A2A2F9 /* LogInitialization.cpp in Sources */, 1748 1764 53534F2A1EC0E10E00141B2F /* MachExceptions.defs in Sources */, 1749 1765 7A6EBA3420746C34004F9C44 /* MachSendRight.cpp in Sources */, -
trunk/Source/WTF/wtf/Assertions.h
r278474 r280795 188 188 #if !defined(DEFINE_LOG_CHANNEL) 189 189 #if RELEASE_LOG_DISABLED 190 #define DEFINE_LOG_CHANNEL (name, subsystem) \191 WTFLogChannel LOG_CHANNEL(name) = { (WTFLogChannelState)0, #name, (WTFLogLevel)1};190 #define DEFINE_LOG_CHANNEL_WITH_DETAILS(name, initialState, level, subsystem) \ 191 WTFLogChannel LOG_CHANNEL(name) = { initialState, #name, level }; 192 192 #endif 193 193 #if USE(OS_LOG) && !RELEASE_LOG_DISABLED 194 #define DEFINE_LOG_CHANNEL (name, subsystem) \195 WTFLogChannel LOG_CHANNEL(name) = { (WTFLogChannelState)0, #name, (WTFLogLevel)1, subsystem, OS_LOG_DEFAULT };194 #define DEFINE_LOG_CHANNEL_WITH_DETAILS(name, initialState, level, subsystem) \ 195 WTFLogChannel LOG_CHANNEL(name) = { initialState, #name, level, subsystem, OS_LOG_DEFAULT }; 196 196 #endif 197 197 #if USE(JOURNALD) && !RELEASE_LOG_DISABLED 198 #define DEFINE_LOG_CHANNEL(name, subsystem) \ 199 WTFLogChannel LOG_CHANNEL(name) = { (WTFLogChannelState)0, #name, (WTFLogLevel)1, subsystem }; 200 #endif 201 #endif 198 #define DEFINE_LOG_CHANNEL_WITH_DETAILS(name, initialState, level, subsystem) \ 199 WTFLogChannel LOG_CHANNEL(name) = { initialState, #name, level, subsystem }; 200 #endif 201 #endif 202 203 // This file is included from C (not C++) files, so we can't say things like WTFLogChannelState::Off. 204 static const WTFLogChannelState logChannelStateOff = (WTFLogChannelState)0; 205 static const WTFLogChannelState logChannelStateOn = (WTFLogChannelState)1; 206 static const WTFLogLevel logLevelError = (WTFLogLevel)1; 207 #define DEFINE_LOG_CHANNEL(name, subsystem) DEFINE_LOG_CHANNEL_WITH_DETAILS(name, logChannelStateOff, logLevelError, subsystem); 202 208 203 209 WTF_EXPORT_PRIVATE void WTFReportNotImplementedYet(const char* file, int line, const char* function); -
trunk/Source/WTF/wtf/CMakeLists.txt
r280758 r280795 125 125 LocklessBag.h 126 126 LogChannels.h 127 LogInitialization.h 127 128 Logger.h 128 129 LoggerHelper.h 130 Logging.h 129 131 LoggingAccumulator.h 130 132 LoggingHashID.h … … 425 427 LockedPrintStream.cpp 426 428 LogChannels.cpp 429 LogInitialization.cpp 427 430 Logger.cpp 431 Logging.cpp 428 432 MainThread.cpp 429 433 MediaTime.cpp -
trunk/Source/WTF/wtf/MemoryPressureHandler.cpp
r280155 r280795 27 27 #include <wtf/MemoryPressureHandler.h> 28 28 29 #include <wtf/Logging.h> 29 30 #include <wtf/MemoryFootprint.h> 30 31 #include <wtf/NeverDestroyed.h> 31 32 #include <wtf/RAMSize.h> 32 33 33 #define LOG_CHANNEL_PREFIX Log34 35 34 namespace WTF { 36 37 DEFINE_LOG_CHANNEL(MemoryPressure, LOG_CHANNEL_WEBKIT_SUBSYSTEM);38 35 39 36 WTF_EXPORT_PRIVATE bool MemoryPressureHandler::ReliefLogger::s_loggingEnabled = false; … … 54 51 static std::once_flag onceKey; 55 52 std::call_once(onceKey, [&] { 56 WTFLogChannel* channels[] = { &LogMemoryPressure };57 WTFInitializeLogChannelStatesFromString(channels, 1, "");58 59 53 memoryPressureHandler.construct(); 60 54 }); -
trunk/Source/WTF/wtf/MemoryPressureHandler.h
r280155 r280795 273 273 }; 274 274 275 extern WTFLogChannel LogMemoryPressure;276 277 275 } // namespace WTF 278 276 -
trunk/Source/WTF/wtf/PlatformFTW.cmake
r279339 r280795 25 25 win/FileSystemWin.cpp 26 26 win/LanguageWin.cpp 27 win/LoggingWin.cpp 27 28 win/MainThreadWin.cpp 28 29 win/MemoryFootprintWin.cpp -
trunk/Source/WTF/wtf/PlatformGTK.cmake
r279007 r280795 45 45 46 46 unix/LanguageUnix.cpp 47 unix/LoggingUnix.cpp 47 48 unix/UniStdExtrasUnix.cpp 48 49 ) -
trunk/Source/WTF/wtf/PlatformJSCOnly.cmake
r279007 r280795 12 12 win/FileSystemWin.cpp 13 13 win/LanguageWin.cpp 14 win/LoggingWin.cpp 14 15 win/MainThreadWin.cpp 15 16 win/OSAllocatorWin.cpp … … 38 39 39 40 unix/LanguageUnix.cpp 41 unix/LoggingUnix.cpp 40 42 ) 41 43 if (WTF_OS_FUCHSIA) -
trunk/Source/WTF/wtf/PlatformMac.cmake
r279339 r280795 65 65 cocoa/FileSystemCocoa.mm 66 66 cocoa/LanguageCocoa.mm 67 cocoa/LoggingCocoa.mm 67 68 cocoa/MachSendRight.cpp 68 69 cocoa/MainThreadCocoa.mm -
trunk/Source/WTF/wtf/PlatformPlayStation.cmake
r279007 r280795 16 16 text/unix/TextBreakIteratorInternalICUUnix.cpp 17 17 18 unix/LoggingUnix.cpp 18 19 unix/MemoryPressureHandlerUnix.cpp 19 20 ) -
trunk/Source/WTF/wtf/PlatformWPE.cmake
r279007 r280795 38 38 39 39 unix/LanguageUnix.cpp 40 unix/LoggingUnix.cpp 40 41 unix/MemoryPressureHandlerUnix.cpp 41 42 unix/UniStdExtrasUnix.cpp -
trunk/Source/WTF/wtf/PlatformWin.cmake
r279339 r280795 18 18 win/FileSystemWin.cpp 19 19 win/LanguageWin.cpp 20 win/LoggingWin.cpp 20 21 win/MainThreadWin.cpp 21 22 win/MemoryFootprintWin.cpp -
trunk/Source/WTF/wtf/RefCountedLeakCounter.cpp
r261661 r280795 22 22 #include <wtf/RefCountedLeakCounter.h> 23 23 24 #include <wtf/Logging.h> 25 24 26 #ifdef NDEBUG 25 27 namespace WTF { … … 39 41 40 42 namespace WTF { 41 42 #define LOG_CHANNEL_PREFIX Log43 #if RELEASE_LOG_DISABLED44 static WTFLogChannel LogRefCountedLeaks = { WTFLogChannelState::On, "RefCountedLeaks", WTFLogLevel::Error };45 #endif46 #if USE(OS_LOG) && !RELEASE_LOG_DISABLED47 static WTFLogChannel LogRefCountedLeaks = { WTFLogChannelState::On, "RefCountedLeaks", WTFLogLevel::Error, LOG_CHANNEL_WEBKIT_SUBSYSTEM, OS_LOG_DEFAULT };48 #endif49 #if USE(JOURNALD) && !RELEASE_LOG_DISABLED50 static WTFLogChannel LogRefCountedLeaks = { WTFLogChannelState::On, "RefCountedLeaks", WTFLogLevel::Error, LOG_CHANNEL_WEBKIT_SUBSYSTEM };51 #endif52 43 53 44 typedef HashCountedSet<const char*, PtrHash<const char*>> ReasonSet; -
trunk/Source/WTF/wtf/cocoa/LoggingCocoa.mm
r280794 r280795 24 24 */ 25 25 26 #i nclude"config.h"27 #i nclude "GPUProcessProxy.h"26 #import "config.h" 27 #import <wtf/LogInitialization.h> 28 28 29 #if ENABLE(GPU_PROCESS)29 #if !LOG_DISABLED || !RELEASE_LOG_DISABLED 30 30 31 #include "GPUProcessCreationParameters.h" 31 namespace WTF { 32 32 33 namespace WebKit { 34 35 void GPUProcessProxy::platformInitializeGPUProcessParameters(GPUProcessCreationParameters& parameters) 33 String logLevelString() 36 34 { 37 #if !LOG_DISABLED || !RELEASE_LOG_DISABLED 38 parameters.webCoreLoggingChannels = [[NSUserDefaults standardUserDefaults] stringForKey:@"WebCoreLogging"]; 39 parameters.webKitLoggingChannels = [[NSUserDefaults standardUserDefaults] stringForKey:@"WebKit2Logging"]; 35 #if !LOG_DISABLED 36 return [[NSUserDefaults standardUserDefaults] stringForKey:@"WTFLogging"]; 37 #else 38 return String(); 40 39 #endif 41 40 } 42 41 43 } 42 } // namespace WebKit 44 43 45 44 #endif -
trunk/Source/WTF/wtf/cocoa/MachSendRight.cpp
r273288 r280795 31 31 #include <utility> 32 32 33 # define LOG_CHANNEL_PREFIX Log33 #include <wtf/Logging.h> 34 34 35 35 namespace WTF { 36 37 #if RELEASE_LOG_DISABLED38 WTFLogChannel LogProcess = { WTFLogChannelState::On, "Process", WTFLogLevel::Error };39 #else40 WTFLogChannel LogProcess = { WTFLogChannelState::On, "Process", WTFLogLevel::Error, LOG_CHANNEL_WEBKIT_SUBSYSTEM, OS_LOG_DEFAULT };41 #endif42 36 43 37 static void retainSendRight(mach_port_t port) -
trunk/Source/WTF/wtf/cocoa/MainThreadCocoa.mm
r276880 r280795 36 36 #import <wtf/Assertions.h> 37 37 #import <wtf/BlockPtr.h> 38 #import <wtf/Logging.h> 38 39 #import <wtf/RetainPtr.h> 39 40 #import <wtf/RunLoop.h> … … 45 46 #endif 46 47 47 #define LOG_CHANNEL_PREFIX Log48 49 48 namespace WTF { 50 51 #if RELEASE_LOG_DISABLED52 WTFLogChannel LogThreading = { WTFLogChannelState::On, "Threading", WTFLogLevel::Error };53 #else54 WTFLogChannel LogThreading = { WTFLogChannelState::On, "Threading", WTFLogLevel::Error, LOG_CHANNEL_WEBKIT_SUBSYSTEM, OS_LOG_DEFAULT };55 #endif56 49 57 50 #if USE(WEB_THREAD) -
trunk/Source/WTF/wtf/cocoa/MemoryPressureHandlerCocoa.mm
r278253 r280795 31 31 #import <malloc/malloc.h> 32 32 #import <notify.h> 33 #import <wtf/Logging.h> 33 34 #import <wtf/ResourceUsage.h> 34 35 #import <wtf/spi/darwin/DispatchSPI.h> … … 37 38 38 39 extern "C" void cache_simulate_memory_warning_event(uint64_t); 39 40 #define LOG_CHANNEL_PREFIX Log41 40 42 41 namespace WTF { -
trunk/Source/WebKit/ChangeLog
r280789 r280795 1 2021-08-09 Myles C. Maxfield <mmaxfield@apple.com> 2 3 Support WTF logging channels 4 https://bugs.webkit.org/show_bug.cgi?id=228768 5 6 Reviewed by Fujii Hironori. 7 8 No new tests because there is no behavior change. 9 10 * GPUProcess/GPUProcess.cpp: 11 (WebKit::GPUProcess::initializeGPUProcess): 12 * GPUProcess/GPUProcessCreationParameters.cpp: 13 (WebKit::GPUProcessCreationParameters::encode const): 14 (WebKit::GPUProcessCreationParameters::decode): 15 * GPUProcess/GPUProcessCreationParameters.h: 16 * Shared/AuxiliaryProcess.cpp: 17 (WebKit::AuxiliaryProcess::initialize): 18 * Shared/WebKit2Initialize.cpp: 19 (WebKit::InitializeWebKit2): 20 * Shared/WebProcessCreationParameters.cpp: 21 (WebKit::WebProcessCreationParameters::encode const): 22 (WebKit::WebProcessCreationParameters::decode): 23 * Shared/WebProcessCreationParameters.h: 24 * UIProcess/Cocoa/GPUProcessProxyCocoa.mm: 25 (WebKit::GPUProcessProxy::platformInitializeGPUProcessParameters): 26 * UIProcess/Cocoa/WebProcessPoolCocoa.mm: 27 (WebKit::WebProcessPool::platformInitializeWebProcess): 28 * UIProcess/GPU/GPUProcessProxy.cpp: 29 (WebKit::GPUProcessProxy::platformInitializeGPUProcessParameters): 30 * UIProcess/WebProcessPool.cpp: 31 * WebProcess/cocoa/WebProcessCocoa.mm: 32 (WebKit::WebProcess::platformInitializeWebProcess): 33 1 34 2021-08-09 Said Abou-Hallawa <said@apple.com> 2 35 -
trunk/Source/WebKit/GPUProcess/GPUProcess.cpp
r280758 r280795 50 50 #include <wtf/Algorithms.h> 51 51 #include <wtf/CallbackAggregator.h> 52 #include <wtf/LogInitialization.h> 52 53 #include <wtf/MemoryPressureHandler.h> 53 54 #include <wtf/OptionSet.h> … … 244 245 245 246 #if !LOG_DISABLED || !RELEASE_LOG_DISABLED 247 WTF::logChannels().initializeLogChannelsIfNecessary(parameters.wtfLoggingChannels); 246 248 WebCore::logChannels().initializeLogChannelsIfNecessary(parameters.webCoreLoggingChannels); 247 249 WebKit::logChannels().initializeLogChannelsIfNecessary(parameters.webKitLoggingChannels); -
trunk/Source/WebKit/GPUProcess/GPUProcessCreationParameters.cpp
r278253 r280795 60 60 #endif 61 61 62 encoder << wtfLoggingChannels; 62 63 encoder << webCoreLoggingChannels; 63 64 encoder << webKitLoggingChannels; … … 110 111 #endif 111 112 113 if (!decoder.decode(result.wtfLoggingChannels)) 114 return false; 112 115 if (!decoder.decode(result.webCoreLoggingChannels)) 113 116 return false; -
trunk/Source/WebKit/GPUProcess/GPUProcessCreationParameters.h
r278007 r280795 58 58 #endif 59 59 60 String wtfLoggingChannels; 60 61 String webCoreLoggingChannels; 61 62 String webKitLoggingChannels; -
trunk/Source/WebKit/Shared/AuxiliaryProcess.cpp
r280758 r280795 34 34 #include <WebCore/LogInitialization.h> 35 35 #include <pal/SessionID.h> 36 #include <wtf/LogInitialization.h> 36 37 37 38 #if !OS(WINDOWS) … … 83 84 84 85 #if !LOG_DISABLED || !RELEASE_LOG_DISABLED 86 WTF::logChannels().initializeLogChannelsIfNecessary(); 85 87 WebCore::logChannels().initializeLogChannelsIfNecessary(); 86 88 WebKit::logChannels().initializeLogChannelsIfNecessary(); -
trunk/Source/WebKit/Shared/WebKit2Initialize.cpp
r280758 r280795 31 31 #include <WebCore/LogInitialization.h> 32 32 #include <WebCore/WebCoreJITOperations.h> 33 #include <wtf/LogInitialization.h> 33 34 #include <wtf/MainThread.h> 34 35 #include <wtf/RefCounted.h> … … 48 49 49 50 #if !LOG_DISABLED || !RELEASE_LOG_DISABLED 51 WTF::logChannels().initializeLogChannelsIfNecessary(); 50 52 WebCore::logChannels().initializeLogChannelsIfNecessary(); 51 53 WebKit::logChannels().initializeLogChannelsIfNecessary(); -
trunk/Source/WebKit/Shared/WebProcessCreationParameters.cpp
r280789 r280795 60 60 encoder << enableRemoteWebInspectorExtensionHandle; 61 61 #endif 62 encoder << wtfLoggingChannels; 62 63 encoder << webCoreLoggingChannels; 63 64 encoder << webKitLoggingChannels; … … 263 264 #endif 264 265 266 if (!decoder.decode(parameters.wtfLoggingChannels)) 267 return false; 265 268 if (!decoder.decode(parameters.webCoreLoggingChannels)) 266 269 return false; -
trunk/Source/WebKit/Shared/WebProcessCreationParameters.h
r280789 r280795 95 95 #endif 96 96 97 String wtfLoggingChannels; 97 98 String webCoreLoggingChannels; 98 99 String webKitLoggingChannels; -
trunk/Source/WebKit/UIProcess/Cocoa/GPUProcessProxyCocoa.mm
r279796 r280795 36 36 { 37 37 #if !LOG_DISABLED || !RELEASE_LOG_DISABLED 38 parameters.wtfLoggingChannels = [[NSUserDefaults standardUserDefaults] stringForKey:@"WTFLogging"]; 38 39 parameters.webCoreLoggingChannels = [[NSUserDefaults standardUserDefaults] stringForKey:@"WebCoreLogging"]; 39 40 parameters.webKitLoggingChannels = [[NSUserDefaults standardUserDefaults] stringForKey:@"WebKit2Logging"]; -
trunk/Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm
r280789 r280795 389 389 390 390 #if !LOG_DISABLED || !RELEASE_LOG_DISABLED 391 parameters.wtfLoggingChannels = [[NSUserDefaults standardUserDefaults] stringForKey:@"WTFLogging"]; 391 392 parameters.webCoreLoggingChannels = [[NSUserDefaults standardUserDefaults] stringForKey:@"WebCoreLogging"]; 392 393 parameters.webKitLoggingChannels = [[NSUserDefaults standardUserDefaults] stringForKey:@"WebKit2Logging"]; -
trunk/Source/WebKit/UIProcess/GPU/GPUProcessProxy.cpp
r280699 r280795 50 50 #include <WebCore/RuntimeApplicationChecks.h> 51 51 #include <wtf/CompletionHandler.h> 52 #include <wtf/LogInitialization.h> 52 53 #include <wtf/TranslatedProcess.h> 53 54 … … 608 609 { 609 610 #if !LOG_DISABLED || !RELEASE_LOG_DISABLED 611 parameters.wtfLoggingChannels = WTF::logLevelString(); 610 612 parameters.webCoreLoggingChannels = WebCore::logLevelString(); 611 613 parameters.webKitLoggingChannels = WebKit::logLevelString(); -
trunk/Source/WebKit/UIProcess/WebProcessPool.cpp
r280758 r280795 97 97 #include <pal/SessionID.h> 98 98 #include <wtf/CallbackAggregator.h> 99 #include <wtf/LogInitialization.h> 99 100 #include <wtf/MainThread.h> 100 101 #include <wtf/NeverDestroyed.h> … … 252 253 253 254 #if !LOG_DISABLED || !RELEASE_LOG_DISABLED 255 WTF::logChannels().initializeLogChannelsIfNecessary(); 254 256 WebCore::logChannels().initializeLogChannelsIfNecessary(); 255 257 WebKit::logChannels().initializeLogChannelsIfNecessary(); -
trunk/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm
r280789 r280795 101 101 #import <wtf/FileSystem.h> 102 102 #import <wtf/Language.h> 103 #import <wtf/LogInitialization.h> 103 104 #import <wtf/ProcessPrivilege.h> 104 105 #import <wtf/SoftLinking.h> … … 280 281 281 282 #if !LOG_DISABLED || !RELEASE_LOG_DISABLED 283 WTF::logChannels().initializeLogChannelsIfNecessary(parameters.wtfLoggingChannels); 282 284 WebCore::logChannels().initializeLogChannelsIfNecessary(parameters.webCoreLoggingChannels); 283 285 WebKit::logChannels().initializeLogChannelsIfNecessary(parameters.webKitLoggingChannels); -
trunk/Source/WebKitLegacy/mac/ChangeLog
r280758 r280795 1 2021-08-09 Myles C. Maxfield <mmaxfield@apple.com> 2 3 Support WTF logging channels 4 https://bugs.webkit.org/show_bug.cgi?id=228768 5 6 Reviewed by Fujii Hironori. 7 8 * WebView/WebView.mm: 9 (-[WebView _commonInitializationWithFrameName:groupName:]): 10 1 11 2021-08-07 Myles C. Maxfield <mmaxfield@apple.com> 2 12 -
trunk/Source/WebKitLegacy/mac/WebView/WebView.mm
r280758 r280795 253 253 #import <wtf/HashTraits.h> 254 254 #import <wtf/Language.h> 255 #import <wtf/LogInitialization.h> 255 256 #import <wtf/MainThread.h> 256 257 #import <wtf/MathExtras.h> … … 1482 1483 if (!didOneTimeInitialization) { 1483 1484 #if !LOG_DISABLED || !RELEASE_LOG_DISABLED 1485 WTF::logChannels().initializeLogChannelsIfNecessary(); 1484 1486 WebCore::logChannels().initializeLogChannelsIfNecessary(); 1485 1487 WebKit::logChannels().initializeLogChannelsIfNecessary();
Note:
See TracChangeset
for help on using the changeset viewer.