| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_COMPILATION_STATISTICS_H_ | 5 #ifndef V8_COMPILATION_STATISTICS_H_ |
| 6 #define V8_COMPILATION_STATISTICS_H_ | 6 #define V8_COMPILATION_STATISTICS_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "src/allocation.h" | 11 #include "src/allocation.h" |
| 12 #include "src/base/platform/time.h" | 12 #include "src/base/platform/time.h" |
| 13 | 13 |
| 14 namespace v8 { | 14 namespace v8 { |
| 15 namespace internal { | 15 namespace internal { |
| 16 | 16 |
| 17 class CompilationInfo; | 17 class CompilationInfo; |
| 18 | 18 |
| 19 class CompilationStatistics FINAL : public Malloced { | 19 class CompilationStatistics final : public Malloced { |
| 20 public: | 20 public: |
| 21 CompilationStatistics() {} | 21 CompilationStatistics() {} |
| 22 | 22 |
| 23 class BasicStats { | 23 class BasicStats { |
| 24 public: | 24 public: |
| 25 BasicStats() | 25 BasicStats() |
| 26 : total_allocated_bytes_(0), | 26 : total_allocated_bytes_(0), |
| 27 max_allocated_bytes_(0), | 27 max_allocated_bytes_(0), |
| 28 absolute_max_allocated_bytes_(0) {} | 28 absolute_max_allocated_bytes_(0) {} |
| 29 | 29 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 | 77 |
| 78 DISALLOW_COPY_AND_ASSIGN(CompilationStatistics); | 78 DISALLOW_COPY_AND_ASSIGN(CompilationStatistics); |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 std::ostream& operator<<(std::ostream& os, const CompilationStatistics& s); | 81 std::ostream& operator<<(std::ostream& os, const CompilationStatistics& s); |
| 82 | 82 |
| 83 } // namespace internal | 83 } // namespace internal |
| 84 } // namespace v8 | 84 } // namespace v8 |
| 85 | 85 |
| 86 #endif | 86 #endif |
| OLD | NEW |