blob: 824b15003a749096772620665be47e1033456501 [file] [log] [blame]
Elliott Hughes2faa5f12012-01-30 14:42:07 -08001/*
2 * Copyright (C) 2011 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
jeffhaoe343b762011-12-05 16:36:44 -080016
Brian Carlstromfc0e3212013-07-17 14:40:12 -070017#ifndef ART_RUNTIME_TRACE_H_
18#define ART_RUNTIME_TRACE_H_
jeffhaoe343b762011-12-05 16:36:44 -080019
Andreas Gampe40da2862015-02-27 12:49:04 -080020#include <bitset>
21#include <map>
Ian Rogers700a4022014-05-19 16:49:03 -070022#include <memory>
jeffhaoa9ef3fd2011-12-13 18:33:43 -080023#include <ostream>
24#include <set>
25#include <string>
Mathieu Chartier4d64cd42015-06-02 16:38:29 -070026#include <unordered_map>
Jeff Hao0abc72e2013-08-13 13:45:14 -070027#include <vector>
jeffhaoe343b762011-12-05 16:36:44 -080028
Ian Rogers8ab25ef2014-07-09 18:00:50 -070029#include "atomic.h"
Elliott Hughes76160052012-12-12 16:31:20 -080030#include "base/macros.h"
jeffhaoe343b762011-12-05 16:36:44 -080031#include "globals.h"
Ian Rogers62d6c772013-02-27 08:32:07 -080032#include "instrumentation.h"
Elliott Hughes76160052012-12-12 16:31:20 -080033#include "os.h"
Elliott Hughesa0e18062012-04-13 15:59:59 -070034#include "safe_map.h"
jeffhaoe343b762011-12-05 16:36:44 -080035
36namespace art {
37
Mathieu Chartierc7853442015-03-27 14:35:38 -070038class ArtField;
Mathieu Chartiere401d142015-04-22 13:56:20 -070039class ArtMethod;
Andreas Gampe7526d782015-06-22 22:53:45 -070040class DexFile;
jeffhaoa9ef3fd2011-12-13 18:33:43 -080041class Thread;
jeffhaoe343b762011-12-05 16:36:44 -080042
Andreas Gampe40da2862015-02-27 12:49:04 -080043using DexIndexBitSet = std::bitset<65536>;
Alex Lighta344f6a2016-07-20 10:43:39 -070044
45constexpr size_t kMaxThreadIdNumber = kIsTargetBuild ? 65536U : 1048576U;
46using ThreadIDBitSet = std::bitset<kMaxThreadIdNumber>;
Andreas Gampe40da2862015-02-27 12:49:04 -080047
Jeff Hao64caa7d2013-08-29 11:18:01 -070048enum TracingMode {
49 kTracingInactive,
50 kMethodTracingActive,
51 kSampleProfilingActive,
52};
53
Mathieu Chartier4d64cd42015-06-02 16:38:29 -070054// File format:
55// header
56// record 0
57// record 1
58// ...
59//
60// Header format:
61// u4 magic ('SLOW')
62// u2 version
63// u2 offset to data
64// u8 start date/time in usec
65// u2 record size in bytes (version >= 2 only)
66// ... padding to 32 bytes
67//
68// Record format v1:
69// u1 thread ID
70// u4 method ID | method action
71// u4 time delta since start, in usec
72//
73// Record format v2:
74// u2 thread ID
75// u4 method ID | method action
76// u4 time delta since start, in usec
77//
78// Record format v3:
79// u2 thread ID
80// u4 method ID | method action
81// u4 time delta since start, in usec
82// u4 wall time since start, in usec (when clock == "dual" only)
83//
84// 32 bits of microseconds is 70 minutes.
85//
86// All values are stored in little-endian order.
87
88enum TraceAction {
89 kTraceMethodEnter = 0x00, // method entry
90 kTraceMethodExit = 0x01, // method exit
91 kTraceUnroll = 0x02, // method exited by exception unrolling
92 // 0x03 currently unused
93 kTraceMethodActionMask = 0x03, // two bits
94};
95
Sebastien Hertz3f52eaf2014-04-04 17:50:18 +020096class Trace FINAL : public instrumentation::InstrumentationListener {
jeffhaoe343b762011-12-05 16:36:44 -080097 public:
jeffhao0791adc2012-04-04 11:14:32 -070098 enum TraceFlag {
99 kTraceCountAllocs = 1,
100 };
101
Andreas Gampe7e7e0f42015-03-29 15:26:23 -0700102 enum class TraceOutputMode {
103 kFile,
Andreas Gampe40da2862015-02-27 12:49:04 -0800104 kDDMS,
105 kStreaming
Andreas Gampe7e7e0f42015-03-29 15:26:23 -0700106 };
107
108 enum class TraceMode {
109 kMethodTracing,
110 kSampling
111 };
112
Andreas Gampe40da2862015-02-27 12:49:04 -0800113 ~Trace();
114
Ian Rogerse63db272014-07-15 15:36:11 -0700115 static void SetDefaultClockSource(TraceClockSource clock_source);
Elliott Hughescfbe73d2012-05-22 17:37:06 -0700116
Andreas Gampee34a42c2015-04-25 14:44:29 -0700117 static void Start(const char* trace_filename, int trace_fd, size_t buffer_size, int flags,
Andreas Gampe7e7e0f42015-03-29 15:26:23 -0700118 TraceOutputMode output_mode, TraceMode trace_mode, int interval_us)
Mathieu Chartier90443472015-07-16 20:32:27 -0700119 REQUIRES(!Locks::mutator_lock_, !Locks::thread_list_lock_, !Locks::thread_suspend_count_lock_,
120 !Locks::trace_lock_);
121 static void Pause() REQUIRES(!Locks::trace_lock_, !Locks::thread_list_lock_);
122 static void Resume() REQUIRES(!Locks::trace_lock_);
Andreas Gampe40da2862015-02-27 12:49:04 -0800123
124 // Stop tracing. This will finish the trace and write it to file/send it via DDMS.
Sebastien Hertzbae182c2013-12-17 10:42:03 +0100125 static void Stop()
Mathieu Chartier90443472015-07-16 20:32:27 -0700126 REQUIRES(!Locks::mutator_lock_, !Locks::thread_list_lock_, !Locks::trace_lock_);
Andreas Gampe40da2862015-02-27 12:49:04 -0800127 // Abort tracing. This will just stop tracing and *not* write/send the collected data.
128 static void Abort()
Mathieu Chartier90443472015-07-16 20:32:27 -0700129 REQUIRES(!Locks::mutator_lock_, !Locks::thread_list_lock_, !Locks::trace_lock_);
Andreas Gampe7526d782015-06-22 22:53:45 -0700130 static void Shutdown()
Mathieu Chartier90443472015-07-16 20:32:27 -0700131 REQUIRES(!Locks::mutator_lock_, !Locks::thread_list_lock_, !Locks::trace_lock_);
132 static TracingMode GetMethodTracingMode() REQUIRES(!Locks::trace_lock_);
jeffhaoe343b762011-12-05 16:36:44 -0800133
Elliott Hughescfbe73d2012-05-22 17:37:06 -0700134 bool UseWallClock();
135 bool UseThreadCpuClock();
Jeff Haoc5d824a2014-07-28 18:35:38 -0700136 void MeasureClockOverhead();
137 uint32_t GetClockOverheadNanoSeconds();
Elliott Hughescfbe73d2012-05-22 17:37:06 -0700138
Mathieu Chartiere401d142015-04-22 13:56:20 -0700139 void CompareAndUpdateStackTrace(Thread* thread, std::vector<ArtMethod*>* stack_trace)
Andreas Gampebdf7f1c2016-08-30 16:38:47 -0700140 REQUIRES_SHARED(Locks::mutator_lock_) REQUIRES(!*unique_methods_lock_, !*streaming_lock_);
Jeff Hao0abc72e2013-08-13 13:45:14 -0700141
Sebastien Hertz3f52eaf2014-04-04 17:50:18 +0200142 // InstrumentationListener implementation.
143 void MethodEntered(Thread* thread, mirror::Object* this_object,
Mathieu Chartiere401d142015-04-22 13:56:20 -0700144 ArtMethod* method, uint32_t dex_pc)
Andreas Gampebdf7f1c2016-08-30 16:38:47 -0700145 REQUIRES_SHARED(Locks::mutator_lock_) REQUIRES(!*unique_methods_lock_, !*streaming_lock_)
Mathieu Chartier90443472015-07-16 20:32:27 -0700146 OVERRIDE;
Sebastien Hertz3f52eaf2014-04-04 17:50:18 +0200147 void MethodExited(Thread* thread, mirror::Object* this_object,
Mathieu Chartiere401d142015-04-22 13:56:20 -0700148 ArtMethod* method, uint32_t dex_pc,
Sebastien Hertz3f52eaf2014-04-04 17:50:18 +0200149 const JValue& return_value)
Andreas Gampebdf7f1c2016-08-30 16:38:47 -0700150 REQUIRES_SHARED(Locks::mutator_lock_) REQUIRES(!*unique_methods_lock_, !*streaming_lock_)
Mathieu Chartier90443472015-07-16 20:32:27 -0700151 OVERRIDE;
Sebastien Hertz3f52eaf2014-04-04 17:50:18 +0200152 void MethodUnwind(Thread* thread, mirror::Object* this_object,
Mathieu Chartiere401d142015-04-22 13:56:20 -0700153 ArtMethod* method, uint32_t dex_pc)
Andreas Gampebdf7f1c2016-08-30 16:38:47 -0700154 REQUIRES_SHARED(Locks::mutator_lock_) REQUIRES(!*unique_methods_lock_, !*streaming_lock_)
Mathieu Chartier90443472015-07-16 20:32:27 -0700155 OVERRIDE;
Sebastien Hertz3f52eaf2014-04-04 17:50:18 +0200156 void DexPcMoved(Thread* thread, mirror::Object* this_object,
Mathieu Chartiere401d142015-04-22 13:56:20 -0700157 ArtMethod* method, uint32_t new_dex_pc)
Andreas Gampebdf7f1c2016-08-30 16:38:47 -0700158 REQUIRES_SHARED(Locks::mutator_lock_) REQUIRES(!*unique_methods_lock_, !*streaming_lock_)
Mathieu Chartier90443472015-07-16 20:32:27 -0700159 OVERRIDE;
Sebastien Hertz3f52eaf2014-04-04 17:50:18 +0200160 void FieldRead(Thread* thread, mirror::Object* this_object,
Mathieu Chartiere401d142015-04-22 13:56:20 -0700161 ArtMethod* method, uint32_t dex_pc, ArtField* field)
Andreas Gampebdf7f1c2016-08-30 16:38:47 -0700162 REQUIRES_SHARED(Locks::mutator_lock_) REQUIRES(!*unique_methods_lock_) OVERRIDE;
Sebastien Hertz3f52eaf2014-04-04 17:50:18 +0200163 void FieldWritten(Thread* thread, mirror::Object* this_object,
Mathieu Chartiere401d142015-04-22 13:56:20 -0700164 ArtMethod* method, uint32_t dex_pc, ArtField* field,
Sebastien Hertz3f52eaf2014-04-04 17:50:18 +0200165 const JValue& field_value)
Andreas Gampebdf7f1c2016-08-30 16:38:47 -0700166 REQUIRES_SHARED(Locks::mutator_lock_) REQUIRES(!*unique_methods_lock_) OVERRIDE;
Nicolas Geoffray14691c52015-03-05 10:40:17 +0000167 void ExceptionCaught(Thread* thread, mirror::Throwable* exception_object)
Andreas Gampebdf7f1c2016-08-30 16:38:47 -0700168 REQUIRES_SHARED(Locks::mutator_lock_) REQUIRES(!*unique_methods_lock_) OVERRIDE;
Nicolas Geoffray81f0f952016-01-20 16:25:19 +0000169 void Branch(Thread* thread, ArtMethod* method, uint32_t dex_pc, int32_t dex_pc_offset)
Andreas Gampebdf7f1c2016-08-30 16:38:47 -0700170 REQUIRES_SHARED(Locks::mutator_lock_) REQUIRES(!*unique_methods_lock_) OVERRIDE;
Nicolas Geoffray5550ca82015-08-21 18:38:30 +0100171 void InvokeVirtualOrInterface(Thread* thread,
172 mirror::Object* this_object,
173 ArtMethod* caller,
174 uint32_t dex_pc,
175 ArtMethod* callee)
Andreas Gampebdf7f1c2016-08-30 16:38:47 -0700176 REQUIRES_SHARED(Locks::mutator_lock_) REQUIRES(!*unique_methods_lock_) OVERRIDE;
Jeff Hao5ce4b172013-08-16 16:27:18 -0700177 // Reuse an old stack trace if it exists, otherwise allocate a new one.
Mathieu Chartiere401d142015-04-22 13:56:20 -0700178 static std::vector<ArtMethod*>* AllocStackTrace();
Jeff Hao5ce4b172013-08-16 16:27:18 -0700179 // Clear and store an old stack trace for later use.
Mathieu Chartiere401d142015-04-22 13:56:20 -0700180 static void FreeStackTrace(std::vector<ArtMethod*>* stack_trace);
Jeff Haoe094b872014-10-14 13:12:01 -0700181 // Save id and name of a thread before it exits.
182 static void StoreExitingThreadInfo(Thread* thread);
Jeff Hao5ce4b172013-08-16 16:27:18 -0700183
Mathieu Chartier90443472015-07-16 20:32:27 -0700184 static TraceOutputMode GetOutputMode() REQUIRES(!Locks::trace_lock_);
185 static TraceMode GetMode() REQUIRES(!Locks::trace_lock_);
186 static size_t GetBufferSize() REQUIRES(!Locks::trace_lock_);
Andreas Gampe40da2862015-02-27 12:49:04 -0800187
Mathieu Chartier7778b882015-10-05 16:41:10 -0700188 // Used by class linker to prevent class unloading.
189 static bool IsTracingEnabled() REQUIRES(!Locks::trace_lock_);
190
jeffhaoe343b762011-12-05 16:36:44 -0800191 private:
Andreas Gampee34a42c2015-04-25 14:44:29 -0700192 Trace(File* trace_file, const char* trace_name, size_t buffer_size, int flags,
Andreas Gampe40da2862015-02-27 12:49:04 -0800193 TraceOutputMode output_mode, TraceMode trace_mode);
jeffhao2692b572011-12-16 15:42:28 -0800194
Jeff Hao23009dc2013-08-22 15:36:42 -0700195 // The sampling interval in microseconds is passed as an argument.
Mathieu Chartier90443472015-07-16 20:32:27 -0700196 static void* RunSamplingThread(void* arg) REQUIRES(!Locks::trace_lock_);
Jeff Hao0abc72e2013-08-13 13:45:14 -0700197
Andreas Gampe7526d782015-06-22 22:53:45 -0700198 static void StopTracing(bool finish_tracing, bool flush_file)
Mathieu Chartier90443472015-07-16 20:32:27 -0700199 REQUIRES(!Locks::mutator_lock_, !Locks::thread_list_lock_, !Locks::trace_lock_)
200 // There is an annoying issue with static functions that create a new object and call into
201 // that object that causes them to not be able to tell that we don't currently hold the lock.
202 // This causes the negative annotations to incorrectly have a false positive. TODO: Figure out
203 // how to annotate this.
204 NO_THREAD_SAFETY_ANALYSIS;
Andreas Gampebdf7f1c2016-08-30 16:38:47 -0700205 void FinishTracing() REQUIRES_SHARED(Locks::mutator_lock_) REQUIRES(!*unique_methods_lock_);
jeffhao2692b572011-12-16 15:42:28 -0800206
Jeff Haoc1ff4b72013-08-19 11:33:10 -0700207 void ReadClocks(Thread* thread, uint32_t* thread_clock_diff, uint32_t* wall_clock_diff);
208
Mathieu Chartiere401d142015-04-22 13:56:20 -0700209 void LogMethodTraceEvent(Thread* thread, ArtMethod* method,
Jeff Haoc1ff4b72013-08-19 11:33:10 -0700210 instrumentation::Instrumentation::InstrumentationEvent event,
Andreas Gampe40da2862015-02-27 12:49:04 -0800211 uint32_t thread_clock_diff, uint32_t wall_clock_diff)
Andreas Gampebdf7f1c2016-08-30 16:38:47 -0700212 REQUIRES_SHARED(Locks::mutator_lock_) REQUIRES(!*unique_methods_lock_, !*streaming_lock_);
Ian Rogers62d6c772013-02-27 08:32:07 -0800213
jeffhaoa9ef3fd2011-12-13 18:33:43 -0800214 // Methods to output traced methods and threads.
Mathieu Chartier90443472015-07-16 20:32:27 -0700215 void GetVisitedMethods(size_t end_offset, std::set<ArtMethod*>* visited_methods)
216 REQUIRES(!*unique_methods_lock_);
Mathieu Chartiere401d142015-04-22 13:56:20 -0700217 void DumpMethodList(std::ostream& os, const std::set<ArtMethod*>& visited_methods)
Andreas Gampebdf7f1c2016-08-30 16:38:47 -0700218 REQUIRES_SHARED(Locks::mutator_lock_) REQUIRES(!*unique_methods_lock_);
Mathieu Chartier90443472015-07-16 20:32:27 -0700219 void DumpThreadList(std::ostream& os) REQUIRES(!Locks::thread_list_lock_);
jeffhaoa9ef3fd2011-12-13 18:33:43 -0800220
Andreas Gampe40da2862015-02-27 12:49:04 -0800221 // Methods to register seen entitites in streaming mode. The methods return true if the entity
222 // is newly discovered.
Mathieu Chartiere401d142015-04-22 13:56:20 -0700223 bool RegisterMethod(ArtMethod* method)
Andreas Gampebdf7f1c2016-08-30 16:38:47 -0700224 REQUIRES_SHARED(Locks::mutator_lock_) REQUIRES(streaming_lock_);
Andreas Gampe40da2862015-02-27 12:49:04 -0800225 bool RegisterThread(Thread* thread)
Mathieu Chartier90443472015-07-16 20:32:27 -0700226 REQUIRES(streaming_lock_);
Andreas Gampe40da2862015-02-27 12:49:04 -0800227
228 // Copy a temporary buffer to the main buffer. Used for streaming. Exposed here for lock
229 // annotation.
230 void WriteToBuf(const uint8_t* src, size_t src_size)
Mathieu Chartier90443472015-07-16 20:32:27 -0700231 REQUIRES(streaming_lock_);
Andreas Gampe40da2862015-02-27 12:49:04 -0800232
Mathieu Chartier90443472015-07-16 20:32:27 -0700233 uint32_t EncodeTraceMethod(ArtMethod* method) REQUIRES(!*unique_methods_lock_);
Mathieu Chartier4d64cd42015-06-02 16:38:29 -0700234 uint32_t EncodeTraceMethodAndAction(ArtMethod* method, TraceAction action)
Mathieu Chartier90443472015-07-16 20:32:27 -0700235 REQUIRES(!*unique_methods_lock_);
236 ArtMethod* DecodeTraceMethod(uint32_t tmid) REQUIRES(!*unique_methods_lock_);
237 std::string GetMethodLine(ArtMethod* method) REQUIRES(!*unique_methods_lock_)
Andreas Gampebdf7f1c2016-08-30 16:38:47 -0700238 REQUIRES_SHARED(Locks::mutator_lock_);
Mathieu Chartier4d64cd42015-06-02 16:38:29 -0700239
240 void DumpBuf(uint8_t* buf, size_t buf_size, TraceClockSource clock_source)
Andreas Gampebdf7f1c2016-08-30 16:38:47 -0700241 REQUIRES_SHARED(Locks::mutator_lock_) REQUIRES(!*unique_methods_lock_);
Mathieu Chartier4d64cd42015-06-02 16:38:29 -0700242
Mathieu Chartier2cebb242015-04-21 16:50:40 -0700243 // Singleton instance of the Trace or null when no method tracing is active.
Jeff Hao0abc72e2013-08-13 13:45:14 -0700244 static Trace* volatile the_trace_ GUARDED_BY(Locks::trace_lock_);
Ian Rogers62d6c772013-02-27 08:32:07 -0800245
246 // The default profiler clock source.
Ian Rogerse63db272014-07-15 15:36:11 -0700247 static TraceClockSource default_clock_source_;
jeffhaoe343b762011-12-05 16:36:44 -0800248
Jeff Hao0abc72e2013-08-13 13:45:14 -0700249 // Sampling thread, non-zero when sampling.
250 static pthread_t sampling_pthread_;
251
Jeff Hao5ce4b172013-08-16 16:27:18 -0700252 // Used to remember an unused stack trace to avoid re-allocation during sampling.
Mathieu Chartiere401d142015-04-22 13:56:20 -0700253 static std::unique_ptr<std::vector<ArtMethod*>> temp_stack_trace_;
jeffhaoa9ef3fd2011-12-13 18:33:43 -0800254
Mathieu Chartier2cebb242015-04-21 16:50:40 -0700255 // File to write trace data out to, null if direct to ddms.
Ian Rogers700a4022014-05-19 16:49:03 -0700256 std::unique_ptr<File> trace_file_;
jeffhaoa9ef3fd2011-12-13 18:33:43 -0800257
jeffhao2692b572011-12-16 15:42:28 -0800258 // Buffer to store trace data.
Christopher Ferris241a9582015-04-27 15:19:41 -0700259 std::unique_ptr<uint8_t[]> buf_;
jeffhao2692b572011-12-16 15:42:28 -0800260
jeffhao0791adc2012-04-04 11:14:32 -0700261 // Flags enabling extra tracing of things such as alloc counts.
Ian Rogers62d6c772013-02-27 08:32:07 -0800262 const int flags_;
jeffhao0791adc2012-04-04 11:14:32 -0700263
Andreas Gampe40da2862015-02-27 12:49:04 -0800264 // The kind of output for this tracing.
265 const TraceOutputMode trace_output_mode_;
266
267 // The tracing method.
Andreas Gampe7e7e0f42015-03-29 15:26:23 -0700268 const TraceMode trace_mode_;
Jeff Hao23009dc2013-08-22 15:36:42 -0700269
Ian Rogerse63db272014-07-15 15:36:11 -0700270 const TraceClockSource clock_source_;
Elliott Hughescfbe73d2012-05-22 17:37:06 -0700271
Ian Rogers62d6c772013-02-27 08:32:07 -0800272 // Size of buf_.
Andreas Gampee34a42c2015-04-25 14:44:29 -0700273 const size_t buffer_size_;
jeffhao2692b572011-12-16 15:42:28 -0800274
Ian Rogers62d6c772013-02-27 08:32:07 -0800275 // Time trace was created.
276 const uint64_t start_time_;
277
Jeff Haoc5d824a2014-07-28 18:35:38 -0700278 // Clock overhead.
279 const uint32_t clock_overhead_ns_;
280
Ian Rogers62d6c772013-02-27 08:32:07 -0800281 // Offset into buf_.
Ian Rogers8ab25ef2014-07-09 18:00:50 -0700282 AtomicInteger cur_offset_;
jeffhaoa9ef3fd2011-12-13 18:33:43 -0800283
Ian Rogers62d6c772013-02-27 08:32:07 -0800284 // Did we overflow the buffer recording traces?
285 bool overflow_;
286
Jeff Haoe094b872014-10-14 13:12:01 -0700287 // Map of thread ids and names that have already exited.
288 SafeMap<pid_t, std::string> exited_threads_;
289
Andreas Gampe40da2862015-02-27 12:49:04 -0800290 // Sampling profiler sampling interval.
291 int interval_us_;
292
293 // Streaming mode data.
294 std::string streaming_file_name_;
295 Mutex* streaming_lock_;
Andreas Gampe7526d782015-06-22 22:53:45 -0700296 std::map<const DexFile*, DexIndexBitSet*> seen_methods_;
Andreas Gampe40da2862015-02-27 12:49:04 -0800297 std::unique_ptr<ThreadIDBitSet> seen_threads_;
298
Mathieu Chartier4d64cd42015-06-02 16:38:29 -0700299 // Bijective map from ArtMethod* to index.
300 // Map from ArtMethod* to index in unique_methods_;
Andreas Gampe7526d782015-06-22 22:53:45 -0700301 Mutex* unique_methods_lock_ ACQUIRED_AFTER(streaming_lock_);
Mathieu Chartier4d64cd42015-06-02 16:38:29 -0700302 std::unordered_map<ArtMethod*, uint32_t> art_method_id_map_ GUARDED_BY(unique_methods_lock_);
303 std::vector<ArtMethod*> unique_methods_ GUARDED_BY(unique_methods_lock_);
304
jeffhaoe343b762011-12-05 16:36:44 -0800305 DISALLOW_COPY_AND_ASSIGN(Trace);
306};
307
308} // namespace art
309
Brian Carlstromfc0e3212013-07-17 14:40:12 -0700310#endif // ART_RUNTIME_TRACE_H_