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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | runtime/vm/flag_list.h » ('j') | runtime/vm/flag_list.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/dart.h" 5 #include "vm/dart.h"
6 6
7 #include "vm/become.h" 7 #include "vm/become.h"
8 #include "vm/clustered_snapshot.h" 8 #include "vm/clustered_snapshot.h"
9 #include "vm/code_observers.h" 9 #include "vm/code_observers.h"
10 #include "vm/cpu.h" 10 #include "vm/cpu.h"
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 if (FLAG_support_timeline) { 476 if (FLAG_support_timeline) {
477 if (FLAG_trace_shutdown) { 477 if (FLAG_trace_shutdown) {
478 OS::PrintErr("[+%" Pd64 "ms] SHUTDOWN: Shutting down timeline\n", 478 OS::PrintErr("[+%" Pd64 "ms] SHUTDOWN: Shutting down timeline\n",
479 timestamp()); 479 timestamp());
480 } 480 }
481 Timeline::Shutdown(); 481 Timeline::Shutdown();
482 } 482 }
483 if (FLAG_trace_shutdown) { 483 if (FLAG_trace_shutdown) {
484 OS::PrintErr("[+%" Pd64 "ms] SHUTDOWN: Done\n", timestamp()); 484 OS::PrintErr("[+%" Pd64 "ms] SHUTDOWN: Done\n", timestamp());
485 } 485 }
486 if (FLAG_print_benchmarking_metrics) {
487 OS::Print("PeakRSS(MemoryUse): %" Pd64 " B.\n", OS::MaxRSS());
488 }
486 489
487 return NULL; 490 return NULL;
488 } 491 }
489 492
490 493
491 Isolate* Dart::CreateIsolate(const char* name_prefix, 494 Isolate* Dart::CreateIsolate(const char* name_prefix,
492 const Dart_IsolateFlags& api_flags) { 495 const Dart_IsolateFlags& api_flags) {
493 // Create a new isolate. 496 // Create a new isolate.
494 Isolate* isolate = Isolate::Init(name_prefix, api_flags); 497 Isolate* isolate = Isolate::Init(name_prefix, api_flags);
495 return isolate; 498 return isolate;
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 return predefined_handles_->handles_.IsValidScopedHandle(address); 740 return predefined_handles_->handles_.IsValidScopedHandle(address);
738 } 741 }
739 742
740 743
741 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) { 744 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) {
742 ASSERT(predefined_handles_ != NULL); 745 ASSERT(predefined_handles_ != NULL);
743 return predefined_handles_->api_handles_.IsValidHandle(handle); 746 return predefined_handles_->api_handles_.IsValidHandle(handle);
744 } 747 }
745 748
746 } // namespace dart 749 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flag_list.h » ('j') | runtime/vm/flag_list.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698