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

Side by Side Diff: src/compilation-statistics.h

Issue 2572713003: [turbofan] Add a mutex for recording compilation statistics (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 | src/compilation-statistics.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | src/compilation-statistics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698