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

Unified Diff: runtime/vm/isolate.h

Issue 327803003: Provide the isolate with a trace buffer, but do not allocate one by default. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/isolate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/isolate.h
===================================================================
--- runtime/vm/isolate.h (revision 37183)
+++ runtime/vm/isolate.h (working copy)
@@ -15,6 +15,7 @@
#include "vm/random.h"
#include "vm/store_buffer.h"
#include "vm/tags.h"
+#include "vm/trace_buffer.h"
#include "vm/timer.h"
namespace dart {
@@ -446,6 +447,13 @@
return object_id_ring_;
}
+ void set_trace_buffer(TraceBuffer* buffer) {
+ trace_buffer_ = buffer;
+ }
+ TraceBuffer* trace_buffer() {
+ return trace_buffer_;
+ }
+
DeoptContext* deopt_context() const { return deopt_context_; }
void set_deopt_context(DeoptContext* value) {
ASSERT(value == NULL || deopt_context_ == NULL);
@@ -597,6 +605,9 @@
// Ring buffer of objects assigned an id.
ObjectIdRing* object_id_ring_;
+ // Trace buffer support.
+ TraceBuffer* trace_buffer_;
+
IsolateProfilerData* profiler_data_;
Mutex profiler_data_mutex_;
InterruptableThreadState* thread_state_;
« no previous file with comments | « no previous file | runtime/vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698