diff options
author | Hiroshi Yamauchi <yamauchi@google.com> | 2015-04-02 10:18:12 -0700 |
---|---|---|
committer | Hiroshi Yamauchi <yamauchi@google.com> | 2015-04-13 15:37:40 -0700 |
commit | a1c9f013c034fbddb9337cc5c7ecf0e5a8b77547 (patch) | |
tree | 77a722cae515f6b3c7ea54f5b0fd2435682ae55b /runtime/gc/task_processor.h | |
parent | 67592a44cd5600b3c007b9215e3e5296a61118e8 (diff) | |
download | art-a1c9f013c034fbddb9337cc5c7ecf0e5a8b77547.tar.gz art-a1c9f013c034fbddb9337cc5c7ecf0e5a8b77547.tar.bz2 art-a1c9f013c034fbddb9337cc5c7ecf0e5a8b77547.zip |
getRuntimeStat() support (ART).
Export some runtime stats (currently GC stats) via
VMDebug.getRuntimeStat().
Added several new GC stats such as blocking GC counts and GC count
histograms.
Bug: 19825248
Change-Id: I8ece9ed241dc3982dfd983d7159090ba82940dce
Diffstat (limited to 'runtime/gc/task_processor.h')
-rw-r--r-- | runtime/gc/task_processor.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/gc/task_processor.h b/runtime/gc/task_processor.h index 765f03557e..67e3a549a9 100644 --- a/runtime/gc/task_processor.h +++ b/runtime/gc/task_processor.h @@ -63,6 +63,7 @@ class TaskProcessor { bool IsRunning() const LOCKS_EXCLUDED(lock_); void UpdateTargetRunTime(Thread* self, HeapTask* target_time, uint64_t new_target_time) LOCKS_EXCLUDED(lock_); + Thread* GetRunningThread() const LOCKS_EXCLUDED(lock_); private: class CompareByTargetRunTime { @@ -76,6 +77,7 @@ class TaskProcessor { bool is_running_ GUARDED_BY(lock_); std::unique_ptr<ConditionVariable> cond_ GUARDED_BY(lock_); std::multiset<HeapTask*, CompareByTargetRunTime> tasks_ GUARDED_BY(lock_); + Thread* running_thread_ GUARDED_BY(lock_); }; } // namespace gc |