| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |