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

Unified Diff: runtime/vm/isolate.h

Issue 205713004: Add isolate tag-profile and better handling of errors (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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
Index: runtime/vm/isolate.h
diff --git a/runtime/vm/isolate.h b/runtime/vm/isolate.h
index 39b4ce2bf74672d1651c8e2f2d53355f3400cc9c..7bb26a5cc192e5cb789c2f38387d56255af03f93 100644
--- a/runtime/vm/isolate.h
+++ b/runtime/vm/isolate.h
@@ -14,6 +14,7 @@
#include "vm/megamorphic_cache_table.h"
#include "vm/random.h"
#include "vm/store_buffer.h"
+#include "vm/tags.h"
#include "vm/timer.h"
namespace dart {
@@ -444,6 +445,12 @@ class Isolate : public BaseIsolate {
return thread_state_;
}
+ void ProfileInterrupt();
+
+ VMTagCounters* vm_tag_counters() {
+ return &vm_tag_counters_;
+ }
+
#if defined(DEBUG)
#define REUSABLE_HANDLE_SCOPE_ACCESSORS(object) \
void set_reusable_##object##_handle_scope_active(bool value) { \
@@ -471,6 +478,8 @@ class Isolate : public BaseIsolate {
void BuildName(const char* name_prefix);
void PrintInvokedFunctions();
+ void ProfileIdle();
+
template<class T> T* AllocateReusableHandle();
static ThreadLocalKey isolate_key;
@@ -522,6 +531,8 @@ class Isolate : public BaseIsolate {
Mutex profiler_data_mutex_;
InterruptableThreadState* thread_state_;
+ VMTagCounters vm_tag_counters_;
+
// Isolate list next pointer.
Isolate* next_;

Powered by Google App Engine
This is Rietveld 408576698