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/code_observers.h" | 9 #include "vm/code_observers.h" |
10 #include "vm/globals.h" | 10 #include "vm/globals.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 static void SetSampleDepth(intptr_t depth); | 38 static void SetSampleDepth(intptr_t depth); |
39 static void SetSamplePeriod(intptr_t period); | 39 static void SetSamplePeriod(intptr_t period); |
40 | 40 |
41 static void InitProfilingForIsolate(Isolate* isolate, | 41 static void InitProfilingForIsolate(Isolate* isolate, |
42 bool shared_buffer = true); | 42 bool shared_buffer = true); |
43 static void ShutdownProfilingForIsolate(Isolate* isolate); | 43 static void ShutdownProfilingForIsolate(Isolate* isolate); |
44 | 44 |
45 static void BeginExecution(Isolate* isolate); | 45 static void BeginExecution(Isolate* isolate); |
46 static void EndExecution(Isolate* isolate); | 46 static void EndExecution(Isolate* isolate); |
47 | 47 |
48 static void PrintToJSONStream(Isolate* isolate, JSONStream* stream, | 48 static void PrintJSON(Isolate* isolate, JSONStream* stream, |
49 bool full, TagOrder tag_order); | 49 bool full, TagOrder tag_order); |
50 static void WriteProfile(Isolate* isolate); | 50 static void WriteProfile(Isolate* isolate); |
51 | 51 |
52 static SampleBuffer* sample_buffer() { | 52 static SampleBuffer* sample_buffer() { |
53 return sample_buffer_; | 53 return sample_buffer_; |
54 } | 54 } |
55 | 55 |
56 private: | 56 private: |
57 static bool initialized_; | 57 static bool initialized_; |
58 static Monitor* monitor_; | 58 static Monitor* monitor_; |
59 | 59 |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 intptr_t capacity_; | 234 intptr_t capacity_; |
235 uintptr_t cursor_; | 235 uintptr_t cursor_; |
236 | 236 |
237 DISALLOW_COPY_AND_ASSIGN(SampleBuffer); | 237 DISALLOW_COPY_AND_ASSIGN(SampleBuffer); |
238 }; | 238 }; |
239 | 239 |
240 | 240 |
241 } // namespace dart | 241 } // namespace dart |
242 | 242 |
243 #endif // VM_PROFILER_H_ | 243 #endif // VM_PROFILER_H_ |
OLD | NEW |