| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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/heap.h" | 5 #include "vm/heap.h" |
| 6 | 6 |
| 7 #include "platform/assert.h" | 7 #include "platform/assert.h" |
| 8 #include "platform/utils.h" | 8 #include "platform/utils.h" |
| 9 #include "vm/flags.h" | 9 #include "vm/flags.h" |
| 10 #include "vm/isolate.h" | 10 #include "vm/isolate.h" |
| (...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 754 "%" Pd ", %" Pd ", " // new gen: capacity before/after | 754 "%" Pd ", %" Pd ", " // new gen: capacity before/after |
| 755 "%" Pd ", %" Pd ", " // new gen: external before/after | 755 "%" Pd ", %" Pd ", " // new gen: external before/after |
| 756 "%" Pd ", %" Pd ", " // old gen: in use before/after | 756 "%" Pd ", %" Pd ", " // old gen: in use before/after |
| 757 "%" Pd ", %" Pd ", " // old gen: capacity before/after | 757 "%" Pd ", %" Pd ", " // old gen: capacity before/after |
| 758 "%" Pd ", %" Pd ", " // old gen: external before/after | 758 "%" Pd ", %" Pd ", " // old gen: external before/after |
| 759 "%.3f, %.3f, %.3f, %.3f, " // times | 759 "%.3f, %.3f, %.3f, %.3f, " // times |
| 760 "%" Pd ", %" Pd ", %" Pd ", %" Pd ", " // data | 760 "%" Pd ", %" Pd ", %" Pd ", %" Pd ", " // data |
| 761 "]\n", // End with a comma to make it easier to import in spreadsheets. | 761 "]\n", // End with a comma to make it easier to import in spreadsheets. |
| 762 isolate()->main_port(), space_str, GCReasonToString(stats_.reason_), | 762 isolate()->main_port(), space_str, GCReasonToString(stats_.reason_), |
| 763 stats_.num_, | 763 stats_.num_, |
| 764 MicrosecondsToSeconds(stats_.before_.micros_ - isolate()->start_time()), | 764 MicrosecondsToSeconds(isolate()->UptimeMicros()), |
| 765 MicrosecondsToMilliseconds(stats_.after_.micros_ - | 765 MicrosecondsToMilliseconds(stats_.after_.micros_ - |
| 766 stats_.before_.micros_), | 766 stats_.before_.micros_), |
| 767 RoundWordsToKB(stats_.before_.new_.used_in_words), | 767 RoundWordsToKB(stats_.before_.new_.used_in_words), |
| 768 RoundWordsToKB(stats_.after_.new_.used_in_words), | 768 RoundWordsToKB(stats_.after_.new_.used_in_words), |
| 769 RoundWordsToKB(stats_.before_.new_.capacity_in_words), | 769 RoundWordsToKB(stats_.before_.new_.capacity_in_words), |
| 770 RoundWordsToKB(stats_.after_.new_.capacity_in_words), | 770 RoundWordsToKB(stats_.after_.new_.capacity_in_words), |
| 771 RoundWordsToKB(stats_.before_.new_.external_in_words), | 771 RoundWordsToKB(stats_.before_.new_.external_in_words), |
| 772 RoundWordsToKB(stats_.after_.new_.external_in_words), | 772 RoundWordsToKB(stats_.after_.new_.external_in_words), |
| 773 RoundWordsToKB(stats_.before_.old_.used_in_words), | 773 RoundWordsToKB(stats_.before_.old_.used_in_words), |
| 774 RoundWordsToKB(stats_.after_.old_.used_in_words), | 774 RoundWordsToKB(stats_.after_.old_.used_in_words), |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 843 Dart::vm_isolate()->heap()->WriteProtect(false); | 843 Dart::vm_isolate()->heap()->WriteProtect(false); |
| 844 } | 844 } |
| 845 | 845 |
| 846 | 846 |
| 847 WritableVMIsolateScope::~WritableVMIsolateScope() { | 847 WritableVMIsolateScope::~WritableVMIsolateScope() { |
| 848 ASSERT(Dart::vm_isolate()->heap()->UsedInWords(Heap::kNew) == 0); | 848 ASSERT(Dart::vm_isolate()->heap()->UsedInWords(Heap::kNew) == 0); |
| 849 Dart::vm_isolate()->heap()->WriteProtect(true); | 849 Dart::vm_isolate()->heap()->WriteProtect(true); |
| 850 } | 850 } |
| 851 | 851 |
| 852 } // namespace dart | 852 } // namespace dart |
| OLD | NEW |