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

Unified Diff: runtime/vm/dart.h

Issue 10831005: Emit symbol maps for compiled code for use by the Linux perf tool. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: address review comments Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/include/dart_api.h ('k') | runtime/vm/dart.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart.h
diff --git a/runtime/vm/dart.h b/runtime/vm/dart.h
index 29cccf8a03affd1c187473f5dbf80d365a07dc39..4b741e0ed37d46a9c737016ab96775a10210577a 100644
--- a/runtime/vm/dart.h
+++ b/runtime/vm/dart.h
@@ -29,22 +29,31 @@ class Dart : public AllStatic {
static Isolate* vm_isolate() { return vm_isolate_; }
static ThreadPool* thread_pool() { return thread_pool_; }
+ static void set_perf_events_writer(Dart_FileWriterFunction writer_function) {
+ perf_events_writer_ = writer_function;
+ }
+ static Dart_FileWriterFunction perf_events_writer() {
+ return perf_events_writer_;
+ }
+
static void set_pprof_symbol_generator(DebugInfo* value) {
pprof_symbol_generator_ = value;
}
static DebugInfo* pprof_symbol_generator() { return pprof_symbol_generator_; }
- static void set_flow_graph_writer(FileWriterFunction writer_function) {
+ static void set_flow_graph_writer(Dart_FileWriterFunction writer_function) {
flow_graph_writer_ = writer_function;
}
-
- static FileWriterFunction flow_graph_writer() { return flow_graph_writer_; }
+ static Dart_FileWriterFunction flow_graph_writer() {
+ return flow_graph_writer_;
+ }
private:
static Isolate* vm_isolate_;
static ThreadPool* thread_pool_;
+ static Dart_FileWriterFunction perf_events_writer_;
static DebugInfo* pprof_symbol_generator_;
- static FileWriterFunction flow_graph_writer_;
+ static Dart_FileWriterFunction flow_graph_writer_;
};
} // namespace dart
« no previous file with comments | « runtime/include/dart_api.h ('k') | runtime/vm/dart.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698