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

Unified Diff: runtime/vm/isolate.cc

Issue 1314673008: Migrate logging infrastructure Isolate->Thread (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Finalize marking tasks in parallel, now that it's safe. Created 5 years, 3 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/isolate.h ('k') | runtime/vm/log.h » ('j') | runtime/vm/log.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/isolate.cc
diff --git a/runtime/vm/isolate.cc b/runtime/vm/isolate.cc
index 06dfad2153440b67c04ff43cdeaa55d35a78a82e..60c6326e778ae9486f4a3b2da47a4be7ab74c454 100644
--- a/runtime/vm/isolate.cc
+++ b/runtime/vm/isolate.cc
@@ -907,20 +907,20 @@ void Isolate::BuildName(const char* name_prefix) {
}
-Log* Isolate::Log() const {
+bool Isolate::ShouldLog() const {
Ivan Posva 2015/09/08 21:22:21 We might want to move this functionality into the
koda 2015/09/09 00:26:57 Done.
if (FLAG_isolate_log_filter == NULL) {
if (is_service_isolate_) {
// By default, do not log for the service isolate.
- return Log::NoOpLog();
+ return false;
}
- return log_;
+ return true;
}
ASSERT(name_ != NULL);
if (strstr(name_, FLAG_isolate_log_filter) == NULL) {
// Filter does not match, do not log for this isolate.
- return Log::NoOpLog();
+ return false;
}
- return log_;
+ return true;
}
@@ -1565,7 +1565,7 @@ void Isolate::Shutdown() {
"\tisolate: %s\n", name());
}
if (FLAG_print_metrics) {
- LogBlock lb(this);
+ LogBlock lb(thread);
ISL_Print("Printing metrics for %s\n", name());
#define ISOLATE_METRIC_PRINT(type, variable, name, unit) \
ISL_Print("%s\n", metric_##variable##_.ToString());
« no previous file with comments | « runtime/vm/isolate.h ('k') | runtime/vm/log.h » ('j') | runtime/vm/log.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698