| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef VM_PROFILER_H_ | 5 #ifndef VM_PROFILER_H_ |
| 6 #define VM_PROFILER_H_ | 6 #define VM_PROFILER_H_ |
| 7 | 7 |
| 8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
| 9 #include "vm/bitfield.h" | 9 #include "vm/bitfield.h" |
| 10 #include "vm/code_observers.h" | 10 #include "vm/code_observers.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 bool shared_buffer = true); | 37 bool shared_buffer = true); |
| 38 static void ShutdownProfilingForIsolate(Isolate* isolate); | 38 static void ShutdownProfilingForIsolate(Isolate* isolate); |
| 39 | 39 |
| 40 static void BeginExecution(Isolate* isolate); | 40 static void BeginExecution(Isolate* isolate); |
| 41 static void EndExecution(Isolate* isolate); | 41 static void EndExecution(Isolate* isolate); |
| 42 | 42 |
| 43 static SampleBuffer* sample_buffer() { | 43 static SampleBuffer* sample_buffer() { |
| 44 return sample_buffer_; | 44 return sample_buffer_; |
| 45 } | 45 } |
| 46 | 46 |
| 47 static void RecordAllocation(Isolate* isolate, intptr_t cid); | 47 static void RecordAllocation(Thread* thread, intptr_t cid); |
| 48 | 48 |
| 49 private: | 49 private: |
| 50 static bool initialized_; | 50 static bool initialized_; |
| 51 static Monitor* monitor_; | 51 static Monitor* monitor_; |
| 52 | 52 |
| 53 static void RecordSampleInterruptCallback(const InterruptedThreadState& state, | 53 static void RecordSampleInterruptCallback(const InterruptedThreadState& state, |
| 54 void* data); | 54 void* data); |
| 55 | 55 |
| 56 static SampleBuffer* sample_buffer_; | 56 static SampleBuffer* sample_buffer_; |
| 57 }; | 57 }; |
| (...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 556 | 556 |
| 557 private: | 557 private: |
| 558 ZoneGrowableArray<ProcessedSample*> samples_; | 558 ZoneGrowableArray<ProcessedSample*> samples_; |
| 559 | 559 |
| 560 DISALLOW_COPY_AND_ASSIGN(ProcessedSampleBuffer); | 560 DISALLOW_COPY_AND_ASSIGN(ProcessedSampleBuffer); |
| 561 }; | 561 }; |
| 562 | 562 |
| 563 } // namespace dart | 563 } // namespace dart |
| 564 | 564 |
| 565 #endif // VM_PROFILER_H_ | 565 #endif // VM_PROFILER_H_ |
| OLD | NEW |