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

Unified Diff: src/compilation-statistics.h

Issue 2053383002: Machine-readable TurboFan compiler statistics (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Code comments. Created 4 years, 6 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/compilation-statistics.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compilation-statistics.h
diff --git a/src/compilation-statistics.h b/src/compilation-statistics.h
index 6219180197d582b9b076d5a9466427e502b56404..ceffc2ebc19fcebc297d96e7aba4a63468abcdb9 100644
--- a/src/compilation-statistics.h
+++ b/src/compilation-statistics.h
@@ -15,6 +15,12 @@ namespace v8 {
namespace internal {
class CompilationInfo;
+class CompilationStatistics;
+
+struct AsPrintableStatistics {
+ const CompilationStatistics& s;
+ const bool machine_output;
+};
class CompilationStatistics final : public Malloced {
public:
@@ -65,7 +71,7 @@ class CompilationStatistics final : public Malloced {
};
friend std::ostream& operator<<(std::ostream& os,
- const CompilationStatistics& s);
+ const AsPrintableStatistics& s);
typedef OrderedStats PhaseKindStats;
typedef std::map<std::string, PhaseKindStats> PhaseKindMap;
@@ -78,7 +84,7 @@ class CompilationStatistics final : public Malloced {
DISALLOW_COPY_AND_ASSIGN(CompilationStatistics);
};
-std::ostream& operator<<(std::ostream& os, const CompilationStatistics& s);
+std::ostream& operator<<(std::ostream& os, const AsPrintableStatistics& s);
} // namespace internal
} // namespace v8
« 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