| 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 "gpu/ipc/service/gpu_watchdog_thread.h" | 5 #include "gpu/ipc/service/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 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 | 356 |
| 357 base::debug::Alias(&interrupt_delay); | 357 base::debug::Alias(&interrupt_delay); |
| 358 base::debug::Alias(¤t_cpu_time); | 358 base::debug::Alias(¤t_cpu_time); |
| 359 base::debug::Alias(&time_since_arm); | 359 base::debug::Alias(&time_since_arm); |
| 360 | 360 |
| 361 bool using_thread_ticks = base::ThreadTicks::IsSupported(); | 361 bool using_thread_ticks = base::ThreadTicks::IsSupported(); |
| 362 base::debug::Alias(&using_thread_ticks); | 362 base::debug::Alias(&using_thread_ticks); |
| 363 | 363 |
| 364 bool using_high_res_timer = base::Time::IsHighResolutionTimerInUse(); | 364 bool using_high_res_timer = base::Time::IsHighResolutionTimerInUse(); |
| 365 base::debug::Alias(&using_high_res_timer); | 365 base::debug::Alias(&using_high_res_timer); |
| 366 | |
| 367 bool message_pump_is_signaled = | |
| 368 watched_message_loop_->MessagePumpWasSignaled(); | |
| 369 base::debug::Alias(&message_pump_is_signaled); | |
| 370 #endif | 366 #endif |
| 371 | 367 |
| 372 base::Time current_time = base::Time::Now(); | 368 base::Time current_time = base::Time::Now(); |
| 373 base::TimeTicks current_timeticks = base::TimeTicks::Now(); | 369 base::TimeTicks current_timeticks = base::TimeTicks::Now(); |
| 374 base::debug::Alias(¤t_time); | 370 base::debug::Alias(¤t_time); |
| 375 base::debug::Alias(¤t_timeticks); | 371 base::debug::Alias(¤t_timeticks); |
| 376 | 372 |
| 377 LOG(ERROR) << "The GPU process hung. Terminating after " | 373 LOG(ERROR) << "The GPU process hung. Terminating after " |
| 378 << timeout_.InMilliseconds() << " ms."; | 374 << timeout_.InMilliseconds() << " ms."; |
| 379 | 375 |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 481 int tty_number; | 477 int tty_number; |
| 482 size_t num_res = sscanf(tty_string, "tty%d\n", &tty_number); | 478 size_t num_res = sscanf(tty_string, "tty%d\n", &tty_number); |
| 483 if (num_res == 1) | 479 if (num_res == 1) |
| 484 return tty_number; | 480 return tty_number; |
| 485 } | 481 } |
| 486 return -1; | 482 return -1; |
| 487 } | 483 } |
| 488 #endif | 484 #endif |
| 489 | 485 |
| 490 } // namespace gpu | 486 } // namespace gpu |
| OLD | NEW |