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

Unified Diff: runtime/bin/log_android.cc

Issue 2517683002: Don't include usage counters, etc in snapshots with code. If we already have code, eagerly recompil… (Closed)
Patch Set: . Created 4 years, 1 month 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/bin/gen_snapshot.cc ('k') | runtime/bin/log_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/log_android.cc
diff --git a/runtime/bin/log_android.cc b/runtime/bin/log_android.cc
index 7f68d686097ac21e985e8cb12575ddf33b53519f..42a67556638d4613867711e3d2c505ddbc302c68 100644
--- a/runtime/bin/log_android.cc
+++ b/runtime/bin/log_android.cc
@@ -21,6 +21,7 @@ void Log::VPrint(const char* format, va_list args) {
// (critical ones or not) if we print them to stdout/stderr.
// We also log using android's logging system.
vprintf(format, args);
+ fflush(stdout);
__android_log_vprint(ANDROID_LOG_INFO, "Dart", format, args);
}
@@ -29,6 +30,7 @@ void Log::VPrintErr(const char* format, va_list args) {
// (critical ones or not) if we print them to stdout/stderr.
// We also log using android's logging system.
vfprintf(stderr, format, args);
+ fflush(stderr);
__android_log_vprint(ANDROID_LOG_ERROR, "Dart", format, args);
}
« no previous file with comments | « runtime/bin/gen_snapshot.cc ('k') | runtime/bin/log_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698