Skip to content

Commit ed8adab

Browse files
bnoordhuisjeroen
authored andcommitted
deps: log V8 version in profiler log file
Patch from issue 800293002 authored by [email protected] Review URL: https://codereview.chromium.org/806143002 PR-URL: nodejs/node-v0.x-archive#9043 Reviewed-by: Trevor Norris <[email protected]> Reviewed-By: Timothy J Fontaine <[email protected]> Signed-off-by: Jeroen Ooms <[email protected]>
1 parent 2e4c603 commit ed8adab

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/log-utils.cc

Lines changed: 9 additions & 0 deletions
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 {
@@ -132,6 +133,14 @@ void Log::Initialize() {
132133
}
133134
}
134135
}
136+
137+
if (output_handle_ != NULL) {
138+
LogMessageBuilder msg(logger_);
139+
msg.Append("v8-version,%d,%d,%d,%d,%d\n", Version::GetMajor(),
140+
Version::GetMinor(), Version::GetBuild(), Version::GetPatch(),
141+
Version::IsCandidate());
142+
msg.WriteToLogFile();
143+
}
135144
}
136145

137146

0 commit comments

Comments
 (0)