OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 WTFLogChannel LogProgress = { WTFLogChannelOff }; | 62 WTFLogChannel LogProgress = { WTFLogChannelOff }; |
63 | 63 |
64 WTFLogChannel LogFileAPI = { WTFLogChannelOff }; | 64 WTFLogChannel LogFileAPI = { WTFLogChannelOff }; |
65 | 65 |
66 WTFLogChannel LogWebAudio = { WTFLogChannelOff }; | 66 WTFLogChannel LogWebAudio = { WTFLogChannelOff }; |
67 WTFLogChannel LogCompositing = { WTFLogChannelOff }; | 67 WTFLogChannel LogCompositing = { WTFLogChannelOff }; |
68 WTFLogChannel LogGamepad = { WTFLogChannelOff }; | 68 WTFLogChannel LogGamepad = { WTFLogChannelOff }; |
69 | 69 |
70 WTFLogChannel LogScriptedAnimationController = { WTFLogChannelOff }; | 70 WTFLogChannel LogScriptedAnimationController = { WTFLogChannelOff }; |
71 WTFLogChannel LogTimers = { WTFLogChannelOff }; | 71 WTFLogChannel LogTimers = { WTFLogChannelOff }; |
| 72 WTFLogChannel LogCPU = { WTFLogChannelOff }; |
72 | 73 |
73 WTFLogChannel* getChannelFromName(const String& channelName) | 74 WTFLogChannel* getChannelFromName(const String& channelName) |
74 { | 75 { |
75 if (!(channelName.length() >= 2)) | 76 if (!(channelName.length() >= 2)) |
76 return 0; | 77 return 0; |
77 | 78 |
78 if (equalIgnoringCase(channelName, String("BackForward"))) | 79 if (equalIgnoringCase(channelName, String("BackForward"))) |
79 return &LogBackForward; | 80 return &LogBackForward; |
80 | 81 |
81 if (equalIgnoringCase(channelName, String("Editing"))) | 82 if (equalIgnoringCase(channelName, String("Editing"))) |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 | 150 |
150 if (equalIgnoringCase(channelName, String("Gamepad"))) | 151 if (equalIgnoringCase(channelName, String("Gamepad"))) |
151 return &LogGamepad; | 152 return &LogGamepad; |
152 | 153 |
153 if (equalIgnoringCase(channelName, String("ScriptedAnimationController"))) | 154 if (equalIgnoringCase(channelName, String("ScriptedAnimationController"))) |
154 return &LogScriptedAnimationController; | 155 return &LogScriptedAnimationController; |
155 | 156 |
156 if (equalIgnoringCase(channelName, String("Timers"))) | 157 if (equalIgnoringCase(channelName, String("Timers"))) |
157 return &LogTimers; | 158 return &LogTimers; |
158 | 159 |
| 160 if (equalIgnoringCase(channelName, String(CPU))) |
| 161 return &LogCPU; |
| 162 |
159 return 0; | 163 return 0; |
160 } | 164 } |
161 | 165 |
162 } | 166 } |
163 | 167 |
164 #endif // !LOG_DISABLED | 168 #endif // !LOG_DISABLED |
OLD | NEW |