Changeset 232158 in webkit
- Timestamp:
- May 24, 2018, 12:23:00 PM (8 years ago)
- Location:
- trunk/Source
- Files:
-
- 12 edited
-
WebCore/ChangeLog (modified) (1 diff)
-
WebCore/PAL/ChangeLog (modified) (1 diff)
-
WebCore/PAL/pal/cocoa/LoggingCocoa.mm (modified) (1 diff)
-
WebCore/PAL/pal/unix/LoggingUnix.cpp (modified) (2 diffs)
-
WebCore/PAL/pal/win/LoggingWin.cpp (modified) (2 diffs)
-
WebCore/platform/mac/LoggingMac.mm (modified) (1 diff)
-
WebCore/platform/unix/LoggingUnix.cpp (modified) (2 diffs)
-
WebCore/platform/win/LoggingWin.cpp (modified) (2 diffs)
-
WebKit/ChangeLog (modified) (1 diff)
-
WebKit/Platform/foundation/LoggingFoundation.mm (modified) (1 diff)
-
WebKit/Platform/unix/LoggingUnix.cpp (modified) (1 diff)
-
WebKit/Platform/win/LoggingWin.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r232156 r232158 1 2018-05-24 Chris Dumez <cdumez@apple.com> 2 3 Some of the work in initializeLogChannelsIfNecessary() is unnecessary for release builds 4 https://bugs.webkit.org/show_bug.cgi?id=185951 5 6 Reviewed by Geoffrey Garen. 7 8 Some of the work in initializeLogChannelsIfNecessary() is unnecessary for release builds and slows down 9 launch time. In particular, it is unnecessary to read NSDefaults to figure out which logging channels 10 should be enabled. 11 12 * platform/mac/LoggingMac.mm: 13 (WebCore::logLevelString): 14 * platform/unix/LoggingUnix.cpp: 15 (WebCore::logLevelString): 16 * platform/win/LoggingWin.cpp: 17 (WebCore::logLevelString): 18 1 19 2018-05-24 Chris Dumez <cdumez@apple.com> 2 20 -
trunk/Source/WebCore/PAL/ChangeLog
r232098 r232158 1 2018-05-24 Chris Dumez <cdumez@apple.com> 2 3 Some of the work in initializeLogChannelsIfNecessary() is unnecessary for release builds 4 https://bugs.webkit.org/show_bug.cgi?id=185951 5 6 Reviewed by Geoffrey Garen. 7 8 Some of the work in initializeLogChannelsIfNecessary() is unnecessary for release builds and slows down 9 launch time. In particular, it is unnecessary to read NSDefaults to figure out which logging channels 10 should be enabled. 11 12 * pal/cocoa/LoggingCocoa.mm: 13 (PAL::logLevelString): 14 * pal/unix/LoggingUnix.cpp: 15 (PAL::logLevelString): 16 * pal/win/LoggingWin.cpp: 17 (PAL::logLevelString): 18 1 19 2018-05-22 Simon Fraser <simon.fraser@apple.com> 2 20 -
trunk/Source/WebCore/PAL/pal/cocoa/LoggingCocoa.mm
r223206 r232158 33 33 namespace PAL { 34 34 35 static NSString * const defaultsDomain = @"PALLogging";36 37 35 String logLevelString() 38 36 { 37 #if !LOG_DISABLED 38 static NSString * const defaultsDomain = @"PALLogging"; 39 39 return [[NSUserDefaults standardUserDefaults] stringForKey:defaultsDomain]; 40 #else 41 return String(); 42 #endif 40 43 } 41 44 -
trunk/Source/WebCore/PAL/pal/unix/LoggingUnix.cpp
r223296 r232158 35 35 String logLevelString() 36 36 { 37 #if !LOG_DISABLED 37 38 if (char* logEnv = getenv("WEBKIT_DEBUG")) { 38 39 … … 44 45 return ASCIILiteral("NotYetImplemented,") + String(logEnv); 45 46 } 46 47 #endif 47 48 return String(); 48 49 } -
trunk/Source/WebCore/PAL/pal/win/LoggingWin.cpp
r229309 r232158 35 35 namespace PAL { 36 36 37 static char * const loggingEnvironmentVariable = "WebCoreLogging";38 39 37 String logLevelString() 40 38 { 39 #if !LOG_DISABLED 40 static char* const loggingEnvironmentVariable = "WebCoreLogging"; 41 41 DWORD length = GetEnvironmentVariableA(loggingEnvironmentVariable, 0, 0); 42 42 if (!length) … … 49 49 50 50 return String(buffer.data()); 51 #else 52 return String(); 53 #endif 51 54 } 52 55 -
trunk/Source/WebCore/platform/mac/LoggingMac.mm
r205275 r232158 33 33 namespace WebCore { 34 34 35 static NSString * const defaultsDomain = @"WebCoreLogging";36 37 35 String logLevelString() 38 36 { 37 #if !LOG_DISABLED 38 static NSString * const defaultsDomain = @"WebCoreLogging"; 39 39 return [[NSUserDefaults standardUserDefaults] stringForKey:defaultsDomain]; 40 #else 41 return String(); 42 #endif 40 43 } 41 44 -
trunk/Source/WebCore/platform/unix/LoggingUnix.cpp
r205275 r232158 32 32 String logLevelString() 33 33 { 34 #if !LOG_DISABLED 34 35 char* logEnv = getenv("WEBKIT_DEBUG"); 35 36 if (!logEnv) … … 43 44 // To disable logging notImplemented set the DISABLE_NI_WARNING environment variable to 1. 44 45 return String("NotYetImplemented,") + logEnv; 46 #else 47 return String(); 48 #endif 45 49 } 46 50 -
trunk/Source/WebCore/platform/win/LoggingWin.cpp
r229309 r232158 35 35 namespace WebCore { 36 36 37 static char * const loggingEnvironmentVariable = "WebCoreLogging";38 39 37 String logLevelString() 40 38 { 39 #if !LOG_DISABLED 40 static char* const loggingEnvironmentVariable = "WebCoreLogging"; 41 41 DWORD length = GetEnvironmentVariableA(loggingEnvironmentVariable, 0, 0); 42 42 if (!length) … … 49 49 50 50 return String(buffer.data()); 51 #else 52 return String(); 53 #endif 51 54 } 52 55 -
trunk/Source/WebKit/ChangeLog
r232157 r232158 1 2018-05-24 Chris Dumez <cdumez@apple.com> 2 3 Some of the work in initializeLogChannelsIfNecessary() is unnecessary for release builds 4 https://bugs.webkit.org/show_bug.cgi?id=185951 5 6 Reviewed by Geoffrey Garen. 7 8 Some of the work in initializeLogChannelsIfNecessary() is unnecessary for release builds and slows down 9 launch time. In particular, it is unnecessary to read NSDefaults to figure out which logging channels 10 should be enabled. 11 12 * Platform/foundation/LoggingFoundation.mm: 13 (WebKit::logLevelString): 14 * Platform/unix/LoggingUnix.cpp: 15 (WebKit::logLevelString): 16 * Platform/win/LoggingWin.cpp: 17 (WebKit::logLevelString): 18 1 19 2018-05-24 Per Arne Vollan <pvollan@apple.com> 2 20 -
trunk/Source/WebKit/Platform/foundation/LoggingFoundation.mm
r205275 r232158 32 32 #if !LOG_DISABLED || !RELEASE_LOG_DISABLED 33 33 34 static NSString * const defaultsDomain = @"WebKit2Logging";35 36 34 String logLevelString() 37 35 { 36 #if !LOG_DISABLED 37 static NSString * const defaultsDomain = @"WebKit2Logging"; 38 38 return [[NSUserDefaults standardUserDefaults] stringForKey:defaultsDomain]; 39 #else 40 return String(); 41 #endif 39 42 } 40 43 -
trunk/Source/WebKit/Platform/unix/LoggingUnix.cpp
r205275 r232158 34 34 String logLevelString() 35 35 { 36 #if !LOG_DISABLED 36 37 return getenv("WEBKIT_DEBUG"); 38 #else 39 return String(); 40 #endif 37 41 } 38 42 -
trunk/Source/WebKit/Platform/win/LoggingWin.cpp
r231446 r232158 36 36 namespace WebKit { 37 37 38 static char* const loggingEnvironmentVariable = "WebKitLogging";39 40 38 String logLevelString() 41 39 { 40 #if !LOG_DISABLED 41 static char* const loggingEnvironmentVariable = "WebKitLogging"; 42 42 43 DWORD length = GetEnvironmentVariableA(loggingEnvironmentVariable, 0, 0); 43 44 if (!length) … … 50 51 51 52 return String(buffer.data()); 53 #else 54 return String(); 55 #endif 52 56 } 53 57
Note:
See TracChangeset
for help on using the changeset viewer.