Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Side by Side Diff: chrome/common/crash_keys.cc

Issue 2464853002: Add crash keys to TaskQueueManager::ProcessTaskFromWorkQueue (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/scheduler/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/common/crash_keys.h" 5 #include "chrome/common/crash_keys.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/format_macros.h" 9 #include "base/format_macros.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 #if BUILDFLAG(ENABLE_KASKO) 86 #if BUILDFLAG(ENABLE_KASKO)
87 const char kKaskoGuid[] = "kasko-guid"; 87 const char kKaskoGuid[] = "kasko-guid";
88 const char kKaskoEquivalentGuid[] = "kasko-equivalent-guid"; 88 const char kKaskoEquivalentGuid[] = "kasko-equivalent-guid";
89 #endif 89 #endif
90 90
91 const char kViewCount[] = "view-count"; 91 const char kViewCount[] = "view-count";
92 92
93 const char kZeroEncodeDetails[] = "zero-encode-details"; 93 const char kZeroEncodeDetails[] = "zero-encode-details";
94 94
95 const char kBlinkSchedulerTaskFunctionName =
96 "blink-scheduler-task-function-name";
97 const char kBlinkSchedulerTaskFileName = "blink-scheduler-task-file-name";
98
95 size_t RegisterChromeCrashKeys() { 99 size_t RegisterChromeCrashKeys() {
96 // The following keys may be chunked by the underlying crash logging system, 100 // The following keys may be chunked by the underlying crash logging system,
97 // but ultimately constitute a single key-value pair. 101 // but ultimately constitute a single key-value pair.
98 // 102 //
99 // If you're adding keys here, please also add them to the following lists: 103 // If you're adding keys here, please also add them to the following lists:
100 // 1. //blimp/engine/app/blimp_engine_crash_keys.cc and 104 // 1. //blimp/engine/app/blimp_engine_crash_keys.cc and
Robert Sesek 2016/10/31 14:32:32 Please add to this file too.
alex clarke (OOO till 29th) 2016/10/31 15:51:10 Done.
101 // 2. //chrome/app/chrome_crash_reporter_client_win.cc:: 105 // 2. //chrome/app/chrome_crash_reporter_client_win.cc::
102 // RegisterCrashKeysHelper(). 106 // RegisterCrashKeysHelper().
103 base::debug::CrashKey fixed_keys[] = { 107 base::debug::CrashKey fixed_keys[] = {
104 #if defined(OS_MACOSX) || defined(OS_WIN) 108 #if defined(OS_MACOSX) || defined(OS_WIN)
105 { kMetricsClientId, kSmallSize }, 109 {kMetricsClientId, kSmallSize},
Robert Sesek 2016/10/31 14:32:32 Please leave this formatted as-is. It makes the di
alex clarke (OOO till 29th) 2016/10/31 15:51:10 Sorry that's what git cl format did. I'll revert.
106 #else 110 #else
107 { kClientId, kSmallSize }, 111 {kClientId, kSmallSize},
108 #endif 112 #endif
109 { kChannel, kSmallSize }, 113 {kChannel, kSmallSize},
110 { kActiveURL, kLargeSize }, 114 {kActiveURL, kLargeSize},
111 { kNumVariations, kSmallSize }, 115 {kNumVariations, kSmallSize},
112 { kVariations, kLargeSize }, 116 {kVariations, kLargeSize},
113 { kNumExtensionsCount, kSmallSize }, 117 {kNumExtensionsCount, kSmallSize},
114 { kShutdownType, kSmallSize }, 118 {kShutdownType, kSmallSize},
115 #if !defined(OS_ANDROID) 119 #if !defined(OS_ANDROID)
116 { kGPUVendorID, kSmallSize }, 120 {kGPUVendorID, kSmallSize},
117 { kGPUDeviceID, kSmallSize }, 121 {kGPUDeviceID, kSmallSize},
118 #endif 122 #endif
119 { kGPUDriverVersion, kSmallSize }, 123 {kGPUDriverVersion, kSmallSize},
120 { kGPUPixelShaderVersion, kSmallSize }, 124 {kGPUPixelShaderVersion, kSmallSize},
121 { kGPUVertexShaderVersion, kSmallSize }, 125 {kGPUVertexShaderVersion, kSmallSize},
122 #if defined(OS_MACOSX) 126 #if defined(OS_MACOSX)
123 { kGPUGLVersion, kSmallSize }, 127 {kGPUGLVersion, kSmallSize},
124 #elif defined(OS_POSIX) 128 #elif defined(OS_POSIX)
125 { kGPUVendor, kSmallSize }, 129 {kGPUVendor, kSmallSize},
126 { kGPURenderer, kSmallSize }, 130 {kGPURenderer, kSmallSize},
127 #endif 131 #endif
128 132
129 // content/: 133 // content/:
130 { "bad_message_reason", kSmallSize }, 134 {"bad_message_reason", kSmallSize},
131 { "discardable-memory-allocated", kSmallSize }, 135 {"discardable-memory-allocated", kSmallSize},
132 { "discardable-memory-free", kSmallSize }, 136 {"discardable-memory-free", kSmallSize},
133 { kFontKeyName, kSmallSize}, 137 {kFontKeyName, kSmallSize},
134 { "ppapi_path", kMediumSize }, 138 {"ppapi_path", kMediumSize},
135 { "subresource_url", kLargeSize }, 139 {"subresource_url", kLargeSize},
136 { "total-discardable-memory-allocated", kSmallSize }, 140 {"total-discardable-memory-allocated", kSmallSize},
137 #if defined(OS_WIN) 141 #if defined(OS_WIN)
138 { kHungRendererOutstandingAckCount, kSmallSize }, 142 {kHungRendererOutstandingAckCount, kSmallSize},
139 { kHungRendererOutstandingEventType, kSmallSize }, 143 {kHungRendererOutstandingEventType, kSmallSize},
140 { kHungRendererLastEventType, kSmallSize }, 144 {kHungRendererLastEventType, kSmallSize},
141 { kHungRendererReason, kSmallSize }, 145 {kHungRendererReason, kSmallSize},
142 { kThirdPartyModulesLoaded, kSmallSize }, 146 {kThirdPartyModulesLoaded, kSmallSize},
143 { kThirdPartyModulesNotLoaded, kSmallSize }, 147 {kThirdPartyModulesNotLoaded, kSmallSize},
144 #endif 148 #endif
145 #if defined(OS_CHROMEOS) 149 #if defined(OS_CHROMEOS)
146 { kNumberOfUsers, kSmallSize }, 150 {kNumberOfUsers, kSmallSize},
147 #endif 151 #endif
148 #if defined(OS_MACOSX) 152 #if defined(OS_MACOSX)
149 { mac::kFirstNSException, kMediumSize }, 153 {mac::kFirstNSException, kMediumSize},
150 { mac::kFirstNSExceptionTrace, kMediumSize }, 154 {mac::kFirstNSExceptionTrace, kMediumSize},
151 { mac::kLastNSException, kMediumSize }, 155 {mac::kLastNSException, kMediumSize},
152 { mac::kLastNSExceptionTrace, kMediumSize }, 156 {mac::kLastNSExceptionTrace, kMediumSize},
153 { mac::kNSException, kMediumSize }, 157 {mac::kNSException, kMediumSize},
154 { mac::kNSExceptionTrace, kMediumSize }, 158 {mac::kNSExceptionTrace, kMediumSize},
155 { mac::kSendAction, kMediumSize }, 159 {mac::kSendAction, kMediumSize},
156 { mac::kZombie, kMediumSize }, 160 {mac::kZombie, kMediumSize},
157 { mac::kZombieTrace, kMediumSize }, 161 {mac::kZombieTrace, kMediumSize},
158 // content/: 162 // content/:
159 { "channel_error_bt", kMediumSize }, 163 {"channel_error_bt", kMediumSize},
160 { "remove_route_bt", kMediumSize }, 164 {"remove_route_bt", kMediumSize},
161 { "rwhvm_window", kMediumSize }, 165 {"rwhvm_window", kMediumSize},
162 // media/: 166 // media/:
163 #endif 167 #endif
164 #if BUILDFLAG(ENABLE_KASKO) 168 #if BUILDFLAG(ENABLE_KASKO)
165 { kKaskoGuid, kSmallSize }, 169 {kKaskoGuid, kSmallSize},
166 { kKaskoEquivalentGuid, kSmallSize }, 170 {kKaskoEquivalentGuid, kSmallSize},
167 #endif 171 #endif
168 { kBug464926CrashKey, kSmallSize }, 172 {kBug464926CrashKey, kSmallSize},
169 { kViewCount, kSmallSize }, 173 {kViewCount, kSmallSize},
170 174
171 // media/: 175 // media/:
172 #if defined(OS_WIN) 176 #if defined(OS_WIN)
173 { kHungAudioThreadDetails, kSmallSize }, 177 {kHungAudioThreadDetails, kSmallSize},
174 #endif 178 #endif
175 { kZeroEncodeDetails, kSmallSize }, 179 {kZeroEncodeDetails, kSmallSize},
180
181 // Temporary for https://crbug.com/660427
182 {"blink_scheduler_task_function_name", kSmallSize},
183 {"blink_scheduler_task_file_name", kSmallSize},
176 184
177 // gin/: 185 // gin/:
178 { "v8-ignition", kSmallSize }, 186 {"v8-ignition", kSmallSize},
179 187
180 // Temporary for http://crbug.com/575245. 188 // Temporary for http://crbug.com/575245.
181 { "swapout_frame_id", kSmallSize }, 189 {"swapout_frame_id", kSmallSize},
182 { "swapout_proxy_id", kSmallSize }, 190 {"swapout_proxy_id", kSmallSize},
183 { "swapout_view_id", kSmallSize }, 191 {"swapout_view_id", kSmallSize},
184 { "commit_frame_id", kSmallSize }, 192 {"commit_frame_id", kSmallSize},
185 { "commit_proxy_id", kSmallSize }, 193 {"commit_proxy_id", kSmallSize},
186 { "commit_view_id", kSmallSize }, 194 {"commit_view_id", kSmallSize},
187 { "commit_main_render_frame_id", kSmallSize }, 195 {"commit_main_render_frame_id", kSmallSize},
188 { "newproxy_proxy_id", kSmallSize }, 196 {"newproxy_proxy_id", kSmallSize},
189 { "newproxy_view_id", kSmallSize }, 197 {"newproxy_view_id", kSmallSize},
190 { "newproxy_opener_id", kSmallSize }, 198 {"newproxy_opener_id", kSmallSize},
191 { "newproxy_parent_id", kSmallSize }, 199 {"newproxy_parent_id", kSmallSize},
192 { "rvinit_view_id", kSmallSize }, 200 {"rvinit_view_id", kSmallSize},
193 { "rvinit_proxy_id", kSmallSize }, 201 {"rvinit_proxy_id", kSmallSize},
194 { "rvinit_main_frame_id", kSmallSize }, 202 {"rvinit_main_frame_id", kSmallSize},
195 { "initrf_frame_id", kSmallSize }, 203 {"initrf_frame_id", kSmallSize},
196 { "initrf_proxy_id", kSmallSize }, 204 {"initrf_proxy_id", kSmallSize},
197 { "initrf_view_id", kSmallSize }, 205 {"initrf_view_id", kSmallSize},
198 { "initrf_main_frame_id", kSmallSize }, 206 {"initrf_main_frame_id", kSmallSize},
199 { "initrf_view_is_live", kSmallSize }, 207 {"initrf_view_is_live", kSmallSize},
200 208
201 // Temporary for https://crbug.com/591478. 209 // Temporary for https://crbug.com/591478.
202 { "initrf_parent_proxy_exists", kSmallSize }, 210 {"initrf_parent_proxy_exists", kSmallSize},
203 { "initrf_render_view_is_live", kSmallSize }, 211 {"initrf_render_view_is_live", kSmallSize},
204 { "initrf_parent_is_in_same_site_instance", kSmallSize}, 212 {"initrf_parent_is_in_same_site_instance", kSmallSize},
205 { "initrf_parent_process_is_live", kSmallSize}, 213 {"initrf_parent_process_is_live", kSmallSize},
206 { "initrf_root_is_in_same_site_instance", kSmallSize}, 214 {"initrf_root_is_in_same_site_instance", kSmallSize},
207 { "initrf_root_is_in_same_site_instance_as_parent", kSmallSize}, 215 {"initrf_root_is_in_same_site_instance_as_parent", kSmallSize},
208 { "initrf_root_process_is_live", kSmallSize}, 216 {"initrf_root_process_is_live", kSmallSize},
209 { "initrf_root_proxy_is_live", kSmallSize}, 217 {"initrf_root_proxy_is_live", kSmallSize},
210 218
211 // Temporary for https://crbug.com/626802. 219 // Temporary for https://crbug.com/626802.
212 { "newframe_routing_id", kSmallSize }, 220 {"newframe_routing_id", kSmallSize},
213 { "newframe_proxy_id", kSmallSize }, 221 {"newframe_proxy_id", kSmallSize},
214 { "newframe_opener_id", kSmallSize }, 222 {"newframe_opener_id", kSmallSize},
215 { "newframe_parent_id", kSmallSize }, 223 {"newframe_parent_id", kSmallSize},
216 { "newframe_widget_id", kSmallSize }, 224 {"newframe_widget_id", kSmallSize},
217 { "newframe_widget_hidden", kSmallSize }, 225 {"newframe_widget_hidden", kSmallSize},
218 { "newframe_replicated_origin", kSmallSize }, 226 {"newframe_replicated_origin", kSmallSize},
219 { "newframe_oopifs_possible", kSmallSize }, 227 {"newframe_oopifs_possible", kSmallSize},
220 228
221 // Temporary for https://crbug.com/630103. 229 // Temporary for https://crbug.com/630103.
222 { "origin_mismatch_url", crash_keys::kLargeSize }, 230 {"origin_mismatch_url", crash_keys::kLargeSize},
223 { "origin_mismatch_origin", crash_keys::kMediumSize }, 231 {"origin_mismatch_origin", crash_keys::kMediumSize},
224 { "origin_mismatch_transition", crash_keys::kSmallSize }, 232 {"origin_mismatch_transition", crash_keys::kSmallSize},
225 { "origin_mismatch_redirects", crash_keys::kSmallSize }, 233 {"origin_mismatch_redirects", crash_keys::kSmallSize},
226 { "origin_mismatch_same_page", crash_keys::kSmallSize }, 234 {"origin_mismatch_same_page", crash_keys::kSmallSize},
227 235
228 // Temporary for https://crbug.com/612711. 236 // Temporary for https://crbug.com/612711.
229 { "aci_wrong_sp_extension_id", kSmallSize }, 237 {"aci_wrong_sp_extension_id", kSmallSize},
230 238
231 // Temporary for https://crbug.com/616149. 239 // Temporary for https://crbug.com/616149.
232 { "existing_extension_pref_value_type", crash_keys::kSmallSize }, 240 {"existing_extension_pref_value_type", crash_keys::kSmallSize},
233 241
234 // Temporary for https://crbug.com/630495. 242 // Temporary for https://crbug.com/630495.
235 { "swdh_register_cannot_host_url", crash_keys::kLargeSize }, 243 {"swdh_register_cannot_host_url", crash_keys::kLargeSize},
236 { "swdh_register_cannot_scope_url", crash_keys::kLargeSize }, 244 {"swdh_register_cannot_scope_url", crash_keys::kLargeSize},
237 { "swdh_register_cannot_script_url", crash_keys::kLargeSize }, 245 {"swdh_register_cannot_script_url", crash_keys::kLargeSize},
238 246
239 // Temporary for https://crbug.com/619294. 247 // Temporary for https://crbug.com/619294.
240 { "swdh_unregister_cannot_host_url", crash_keys::kLargeSize }, 248 {"swdh_unregister_cannot_host_url", crash_keys::kLargeSize},
241 { "swdh_unregister_cannot_scope_url", crash_keys::kLargeSize }, 249 {"swdh_unregister_cannot_scope_url", crash_keys::kLargeSize},
242 250
243 // Temporary for https://crbug.com/630496. 251 // Temporary for https://crbug.com/630496.
244 { "swdh_get_registration_cannot_host_url", crash_keys::kLargeSize }, 252 {"swdh_get_registration_cannot_host_url", crash_keys::kLargeSize},
245 { "swdh_get_registration_cannot_document_url", crash_keys::kLargeSize }, 253 {"swdh_get_registration_cannot_document_url", crash_keys::kLargeSize},
246 }; 254 };
247 255
248 // This dynamic set of keys is used for sets of key value pairs when gathering 256 // This dynamic set of keys is used for sets of key value pairs when gathering
249 // a collection of data, like command line switches or extension IDs. 257 // a collection of data, like command line switches or extension IDs.
250 std::vector<base::debug::CrashKey> keys( 258 std::vector<base::debug::CrashKey> keys(
251 fixed_keys, fixed_keys + arraysize(fixed_keys)); 259 fixed_keys, fixed_keys + arraysize(fixed_keys));
252 260
253 crash_keys::GetCrashKeysForCommandLineSwitches(&keys); 261 crash_keys::GetCrashKeysForCommandLineSwitches(&keys);
254 262
255 // Register the extension IDs. 263 // Register the extension IDs.
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 } 380 }
373 381
374 ScopedPrinterInfo::~ScopedPrinterInfo() { 382 ScopedPrinterInfo::~ScopedPrinterInfo() {
375 for (size_t i = 0; i < kPrinterInfoCount; ++i) { 383 for (size_t i = 0; i < kPrinterInfoCount; ++i) {
376 std::string key = base::StringPrintf(kPrinterInfo, i + 1); 384 std::string key = base::StringPrintf(kPrinterInfo, i + 1);
377 base::debug::ClearCrashKey(key); 385 base::debug::ClearCrashKey(key);
378 } 386 }
379 } 387 }
380 388
381 } // namespace crash_keys 389 } // namespace crash_keys
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/scheduler/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698