Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Commit 431eb17

Browse files
bnoordhuistrevnorris
authored andcommitted
deps: log V8 version in profiler log file
Patch from issue 800293002 authored by ben@strongloop.com Review URL: https://codereview.chromium.org/806143002 PR-URL: #9043 Reviewed-by: Trevor Norris <trev.norris@gmail.com> Reviewed-By: Timothy J Fontaine <tjfontaine@gmail.com>
1 parent ff32b81 commit 431eb17

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

deps/v8/src/log-utils.cc

+9
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929

3030
#include "log-utils.h"
3131
#include "string-stream.h"
32+
#include "version.h"
3233

3334
namespace v8 {
3435
namespace internal {
@@ -136,6 +137,14 @@ void Log::Initialize() {
136137
}
137138
}
138139
}
140+
141+
if (output_handle_ != NULL) {
142+
LogMessageBuilder msg(logger_);
143+
msg.Append("v8-version,%d,%d,%d,%d,%d\n", Version::GetMajor(),
144+
Version::GetMinor(), Version::GetBuild(), Version::GetPatch(),
145+
Version::IsCandidate());
146+
msg.WriteToLogFile();
147+
}
139148
}
140149

141150

0 commit comments

Comments
 (0)