diff options
Diffstat (limited to 'runtime/thread_list.cc')
-rw-r--r-- | runtime/thread_list.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/thread_list.cc b/runtime/thread_list.cc index ddfbebd..1ab0093 100644 --- a/runtime/thread_list.cc +++ b/runtime/thread_list.cc @@ -448,13 +448,13 @@ size_t ThreadList::FlipThreadRoots(Closure* thread_flip_visitor, Closure* flip_c return runnable_threads.size() + other_threads.size() + 1; // +1 for self. } -void ThreadList::SuspendAll() { +void ThreadList::SuspendAll(const char* cause) { Thread* self = Thread::Current(); if (self != nullptr) { - VLOG(threads) << *self << " SuspendAll starting..."; + VLOG(threads) << *self << " SuspendAll for " << cause << " starting..."; } else { - VLOG(threads) << "Thread[null] SuspendAll starting..."; + VLOG(threads) << "Thread[null] SuspendAll for " << cause << " starting..."; } ATRACE_BEGIN("Suspending mutator threads"); const uint64_t start_time = NanoTime(); @@ -503,7 +503,7 @@ void ThreadList::SuspendAll() { } ATRACE_END(); - ATRACE_BEGIN("Mutator threads suspended"); + ATRACE_BEGIN((std::string("Mutator threads suspended for ") + cause).c_str()); if (self != nullptr) { VLOG(threads) << *self << " SuspendAll complete"; |