Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(571)

Side by Side Diff: runtime/vm/profiler.h

Issue 83093004: Fix shutdown races and move signal blocking into profiler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/profiler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
11 #include "vm/code_observers.h" 11 #include "vm/code_observers.h"
12 #include "vm/globals.h" 12 #include "vm/globals.h"
13 13
14 namespace dart { 14 namespace dart {
15 15
16 // Forward declarations. 16 // Forward declarations.
17 class JSONStream; 17 class JSONStream;
18 18
19 // Profiler manager. 19 // Profiler manager.
20 class ProfilerManager : public AllStatic { 20 class ProfilerManager : public AllStatic {
21 public: 21 public:
22 static void InitOnce(); 22 static void InitOnce();
23 static void Shutdown(); 23 static void Shutdown();
24 24
25 static void SetupIsolateForProfiling(Isolate* isolate); 25 static void SetupIsolateForProfiling(Isolate* isolate);
26 static void ShutdownIsolateForProfiling(Isolate* isolate); 26 static void ShutdownIsolateForProfiling(Isolate* isolate);
27 static void ScheduleIsolate(Isolate* isolate); 27 static void ScheduleIsolate(Isolate* isolate, bool inside_signal = false);
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_;
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 const uintptr_t original_pc_; 190 const uintptr_t original_pc_;
191 const uintptr_t original_fp_; 191 const uintptr_t original_fp_;
192 const uintptr_t original_sp_; 192 const uintptr_t original_sp_;
193 uintptr_t lower_bound_; 193 uintptr_t lower_bound_;
194 }; 194 };
195 195
196 196
197 } // namespace dart 197 } // namespace dart
198 198
199 #endif // VM_PROFILER_H_ 199 #endif // VM_PROFILER_H_
OLDNEW
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698