OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/gpu/gpu_watchdog_thread.h" | 5 #include "content/gpu/gpu_watchdog_thread.h" |
6 | 6 |
7 #include <errno.h> | 7 #include <errno.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 | 339 |
340 base::debug::Alias(&interrupt_delay); | 340 base::debug::Alias(&interrupt_delay); |
341 base::debug::Alias(¤t_cpu_time); | 341 base::debug::Alias(¤t_cpu_time); |
342 base::debug::Alias(&time_since_arm); | 342 base::debug::Alias(&time_since_arm); |
343 | 343 |
344 bool using_thread_ticks = base::ThreadTicks::IsSupported(); | 344 bool using_thread_ticks = base::ThreadTicks::IsSupported(); |
345 base::debug::Alias(&using_thread_ticks); | 345 base::debug::Alias(&using_thread_ticks); |
346 | 346 |
347 bool using_high_res_timer = base::Time::IsHighResolutionTimerInUse(); | 347 bool using_high_res_timer = base::Time::IsHighResolutionTimerInUse(); |
348 base::debug::Alias(&using_high_res_timer); | 348 base::debug::Alias(&using_high_res_timer); |
| 349 |
| 350 bool message_pump_is_signaled = |
| 351 watched_message_loop_->MessagePumpWasSignaled(); |
| 352 base::debug::Alias(&message_pump_is_signaled); |
349 #endif | 353 #endif |
350 | 354 |
351 base::Time current_time = base::Time::Now(); | 355 base::Time current_time = base::Time::Now(); |
352 base::TimeTicks current_timeticks = base::TimeTicks::Now(); | 356 base::TimeTicks current_timeticks = base::TimeTicks::Now(); |
353 base::debug::Alias(¤t_time); | 357 base::debug::Alias(¤t_time); |
354 base::debug::Alias(¤t_timeticks); | 358 base::debug::Alias(¤t_timeticks); |
355 | 359 |
356 LOG(ERROR) << "The GPU process hung. Terminating after " | 360 LOG(ERROR) << "The GPU process hung. Terminating after " |
357 << timeout_.InMilliseconds() << " ms."; | 361 << timeout_.InMilliseconds() << " ms."; |
358 | 362 |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
460 int tty_number; | 464 int tty_number; |
461 size_t num_res = sscanf(tty_string, "tty%d\n", &tty_number); | 465 size_t num_res = sscanf(tty_string, "tty%d\n", &tty_number); |
462 if (num_res == 1) | 466 if (num_res == 1) |
463 return tty_number; | 467 return tty_number; |
464 } | 468 } |
465 return -1; | 469 return -1; |
466 } | 470 } |
467 #endif | 471 #endif |
468 | 472 |
469 } // namespace content | 473 } // namespace content |
OLD | NEW |