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

Side by Side Diff: vm/dart.h

Issue 10446116: Add flow graph printing into a .cfg file with flag --print-flow-graph-file. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 6 months 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
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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_DART_H_ 5 #ifndef VM_DART_H_
6 #define VM_DART_H_ 6 #define VM_DART_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "vm/allocation.h" 9 #include "vm/allocation.h"
10 10
(...skipping 15 matching lines...) Expand all
26 static void ShutdownIsolate(); 26 static void ShutdownIsolate();
27 27
28 static Isolate* vm_isolate() { return vm_isolate_; } 28 static Isolate* vm_isolate() { return vm_isolate_; }
29 static ThreadPool* thread_pool() { return thread_pool_; } 29 static ThreadPool* thread_pool() { return thread_pool_; }
30 30
31 static void set_pprof_symbol_generator(DebugInfo* value) { 31 static void set_pprof_symbol_generator(DebugInfo* value) {
32 pprof_symbol_generator_ = value; 32 pprof_symbol_generator_ = value;
33 } 33 }
34 static DebugInfo* pprof_symbol_generator() { return pprof_symbol_generator_; } 34 static DebugInfo* pprof_symbol_generator() { return pprof_symbol_generator_; }
35 35
36 static void set_flow_graph_writer(FileWriterFunction writer_function) {
37 flow_graph_writer_ = writer_function;
38 }
39
40 static FileWriterFunction flow_graph_writer() { return flow_graph_writer_; }
41
36 private: 42 private:
37 static Isolate* vm_isolate_; 43 static Isolate* vm_isolate_;
38 static ThreadPool* thread_pool_; 44 static ThreadPool* thread_pool_;
39 static DebugInfo* pprof_symbol_generator_; 45 static DebugInfo* pprof_symbol_generator_;
46 static FileWriterFunction flow_graph_writer_;
siva 2012/06/04 18:23:57 If you have this as a static function with a stati
Florian Schneider 2012/06/06 11:06:10 It does not work. I'm fine for now with it workin
siva 2012/06/06 17:02:47 Having one file per isolate is probably the way to
Florian Schneider 2012/06/07 09:32:26 I can add a TODO. I don't think this is a typical
40 }; 47 };
41 48
42 } // namespace dart 49 } // namespace dart
43 50
44 #endif // VM_DART_H_ 51 #endif // VM_DART_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698