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

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/metrics.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 568975c0e4bc84f4347ba7f77e736b979975ccf9..637fb1d5f56c45a4014d8f965ace9fe9404ca797 100644
--- a/runtime/vm/dart.cc
+++ b/runtime/vm/dart.cc
@@ -485,6 +485,9 @@ const char* Dart::Cleanup() {
if (FLAG_trace_shutdown) {
OS::PrintErr("[+%" Pd64 "ms] SHUTDOWN: Done\n", UptimeMillis());
}
+ if (FLAG_print_benchmarking_metrics) {
+ OS::Print("PeakRSS(MemoryUse): %" Pd64 " B.\n", OS::MaxRSS());
Cutch 2016/12/16 21:49:07 This can just be a VM metric
+ }
return NULL;
}
« no previous file with comments | « no previous file | runtime/vm/flag_list.h » ('j') | runtime/vm/metrics.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698