Index: src/log-utils.cc |
diff --git a/src/log-utils.cc b/src/log-utils.cc |
index c94d07a9f29220fab5caeb252381c35821f6970c..278cff1fc8ba93293953f0cf911c5821d8564c6f 100644 |
--- a/src/log-utils.cc |
+++ b/src/log-utils.cc |
@@ -6,6 +6,7 @@ |
#include "src/log-utils.h" |
#include "src/string-stream.h" |
+#include "src/version.h" |
namespace v8 { |
namespace internal { |
@@ -49,6 +50,14 @@ void Log::Initialize(const char* log_file_name) { |
} else { |
OpenFile(log_file_name); |
} |
+ |
+ if (output_handle_ != nullptr) { |
+ Log::MessageBuilder msg(this); |
+ msg.Append("v8-version,%d,%d,%d,%d,%d", Version::GetMajor(), |
+ Version::GetMinor(), Version::GetBuild(), Version::GetPatch(), |
+ Version::IsCandidate()); |
+ msg.WriteToLogFile(); |
+ } |
} |
} |