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 "platform/hashmap.h" | 8 #include "platform/hashmap.h" |
9 #include "platform/thread.h" | 9 #include "platform/thread.h" |
10 #include "vm/allocation.h" | 10 #include "vm/allocation.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 static void DescheduleIsolate(Isolate* isolate); | 28 static void DescheduleIsolate(Isolate* isolate); |
29 | 29 |
30 static void PrintToJSONStream(Isolate* isolate, JSONStream* stream); | 30 static void PrintToJSONStream(Isolate* isolate, JSONStream* stream); |
31 | 31 |
32 static void WriteTracing(Isolate* isolate, const char* name, Dart_Port port); | 32 static void WriteTracing(Isolate* isolate, const char* name, Dart_Port port); |
33 | 33 |
34 private: | 34 private: |
35 static const intptr_t kMaxProfiledIsolates = 4096; | 35 static const intptr_t kMaxProfiledIsolates = 4096; |
36 static bool initialized_; | 36 static bool initialized_; |
37 static bool shutdown_; | 37 static bool shutdown_; |
| 38 static bool thread_running_; |
38 static Monitor* monitor_; | 39 static Monitor* monitor_; |
| 40 static Monitor* start_stop_monitor_; |
39 | 41 |
40 static Isolate** isolates_; | 42 static Isolate** isolates_; |
41 static intptr_t isolates_capacity_; | 43 static intptr_t isolates_capacity_; |
42 static intptr_t isolates_size_; | 44 static intptr_t isolates_size_; |
43 | 45 |
44 static void ScheduleIsolateHelper(Isolate* isolate); | 46 static void ScheduleIsolateHelper(Isolate* isolate); |
45 static void ResizeIsolates(intptr_t new_capacity); | 47 static void ResizeIsolates(intptr_t new_capacity); |
46 static void AddIsolate(Isolate* isolate); | 48 static void AddIsolate(Isolate* isolate); |
47 static intptr_t FindIsolate(Isolate* isolate); | 49 static intptr_t FindIsolate(Isolate* isolate); |
48 static void RemoveIsolate(intptr_t i); | 50 static void RemoveIsolate(intptr_t i); |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 const uintptr_t original_pc_; | 197 const uintptr_t original_pc_; |
196 const uintptr_t original_fp_; | 198 const uintptr_t original_fp_; |
197 const uintptr_t original_sp_; | 199 const uintptr_t original_sp_; |
198 uintptr_t lower_bound_; | 200 uintptr_t lower_bound_; |
199 }; | 201 }; |
200 | 202 |
201 | 203 |
202 } // namespace dart | 204 } // namespace dart |
203 | 205 |
204 #endif // VM_PROFILER_H_ | 206 #endif // VM_PROFILER_H_ |
OLD | NEW |