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

Unified Diff: runtime/vm/isolate.h

Issue 1841213003: Move CompilerStats from isolate to thread. Aggregate stats. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: review comments addressed Created 4 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
« no previous file with comments | « runtime/vm/compiler_stats.cc ('k') | 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
diff --git a/runtime/vm/isolate.h b/runtime/vm/isolate.h
index 58ca52c434d7be7e3c21b0dbf0f00d5bc02da02f..9f4cec8f75c35791dba14c8781cffb6f1d3a39eb 100644
--- a/runtime/vm/isolate.h
+++ b/runtime/vm/isolate.h
@@ -418,8 +418,10 @@ class Isolate : public BaseIsolate {
void PrintJSON(JSONStream* stream, bool ref = true);
- CompilerStats* compiler_stats() {
- return compiler_stats_;
+ // Mutator thread is used to aggregate compiler stats.
+ CompilerStats* aggregate_compiler_stats() {
+ ASSERT(HasMutatorThread());
+ return mutator_thread_->compiler_stats();
}
VMTagCounters* vm_tag_counters() {
@@ -671,8 +673,6 @@ class Isolate : public BaseIsolate {
intptr_t defer_finalization_count_;
DeoptContext* deopt_context_;
- CompilerStats* compiler_stats_;
-
bool is_service_isolate_;
// Isolate-specific flags.
« no previous file with comments | « runtime/vm/compiler_stats.cc ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698