| 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 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 friend std::ostream& operator<<(std::ostream& os, | 73 friend std::ostream& operator<<(std::ostream& os, |
| 74 const AsPrintableStatistics& s); | 74 const AsPrintableStatistics& s); |
| 75 | 75 |
| 76 typedef OrderedStats PhaseKindStats; | 76 typedef OrderedStats PhaseKindStats; |
| 77 typedef std::map<std::string, PhaseKindStats> PhaseKindMap; | 77 typedef std::map<std::string, PhaseKindStats> PhaseKindMap; |
| 78 typedef std::map<std::string, PhaseStats> PhaseMap; | 78 typedef std::map<std::string, PhaseStats> PhaseMap; |
| 79 | 79 |
| 80 TotalStats total_stats_; | 80 TotalStats total_stats_; |
| 81 PhaseKindMap phase_kind_map_; | 81 PhaseKindMap phase_kind_map_; |
| 82 PhaseMap phase_map_; | 82 PhaseMap phase_map_; |
| 83 base::Mutex record_mutex_; |
| 83 | 84 |
| 84 DISALLOW_COPY_AND_ASSIGN(CompilationStatistics); | 85 DISALLOW_COPY_AND_ASSIGN(CompilationStatistics); |
| 85 }; | 86 }; |
| 86 | 87 |
| 87 std::ostream& operator<<(std::ostream& os, const AsPrintableStatistics& s); | 88 std::ostream& operator<<(std::ostream& os, const AsPrintableStatistics& s); |
| 88 | 89 |
| 89 } // namespace internal | 90 } // namespace internal |
| 90 } // namespace v8 | 91 } // namespace v8 |
| 91 | 92 |
| 92 #endif | 93 #endif |
| OLD | NEW |