diff options
author | Jeff Hao <jeffhao@google.com> | 2013-08-19 11:33:10 -0700 |
---|---|---|
committer | Jeff Hao <jeffhao@google.com> | 2013-08-19 11:33:10 -0700 |
commit | c1ff4b79a5d81b849203cc1e1c4a91223e75cfd3 (patch) | |
tree | f7db1ecdb8ec858345391bc90f5721d1ad511f50 /runtime/trace.h | |
parent | 2aa25df0c41bb620c8cc239600af738855169bed (diff) | |
download | art-c1ff4b79a5d81b849203cc1e1c4a91223e75cfd3.zip art-c1ff4b79a5d81b849203cc1e1c4a91223e75cfd3.tar.gz art-c1ff4b79a5d81b849203cc1e1c4a91223e75cfd3.tar.bz2 |
Sampling profiler reads clocks once for all events in a trace.
Change-Id: I5954c5777384cebe01f913e5525481e1d127785c
Diffstat (limited to 'runtime/trace.h')
-rw-r--r-- | runtime/trace.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/trace.h b/runtime/trace.h index 9fe2cc6..6fc3790 100644 --- a/runtime/trace.h +++ b/runtime/trace.h @@ -97,8 +97,11 @@ class Trace : public instrumentation::InstrumentationListener { void FinishTracing() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); + void ReadClocks(Thread* thread, uint32_t* thread_clock_diff, uint32_t* wall_clock_diff); + void LogMethodTraceEvent(Thread* thread, const mirror::ArtMethod* method, - instrumentation::Instrumentation::InstrumentationEvent event); + instrumentation::Instrumentation::InstrumentationEvent event, + uint32_t thread_clock_diff, uint32_t wall_clock_diff); // Methods to output traced methods and threads. void GetVisitedMethods(size_t end_offset, std::set<mirror::ArtMethod*>* visited_methods); |