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

Unified Diff: runtime/vm/dart.cc

Issue 2572873003: Add --print-benchmarking-metrics to the VM for Golem. (Closed)
Patch Set: . Created 4 years 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/flag_list.h » ('j') | runtime/vm/isolate.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart.cc
diff --git a/runtime/vm/dart.cc b/runtime/vm/dart.cc
index 6736835c9d29eae68e0eec1c454d62ac95638b30..9c7e448321824211461b9e0425146a3dc6a4d711 100644
--- a/runtime/vm/dart.cc
+++ b/runtime/vm/dart.cc
@@ -483,6 +483,9 @@ const char* Dart::Cleanup() {
if (FLAG_trace_shutdown) {
OS::PrintErr("[+%" Pd64 "ms] SHUTDOWN: Done\n", timestamp());
}
+ if (FLAG_print_benchmarking_metrics) {
+ OS::Print("PeakRSS(MemoryUse): %" Pd64 " B.\n", OS::MaxRSS());
+ }
return NULL;
}
« no previous file with comments | « no previous file | runtime/vm/flag_list.h » ('j') | runtime/vm/isolate.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698