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

deps: log V8 version in profiler log file #9043

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions deps/v8/src/log-utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

#include "log-utils.h"
#include "string-stream.h"
#include "version.h"

namespace v8 {
namespace internal {
Expand Down Expand Up @@ -136,6 +137,14 @@ void Log::Initialize() {
}
}
}

if (output_handle_ != NULL) {
LogMessageBuilder msg(logger_);
msg.Append("v8-version,%d,%d,%d,%d,%d\n", Version::GetMajor(),
Version::GetMinor(), Version::GetBuild(), Version::GetPatch(),
Version::IsCandidate());
msg.WriteToLogFile();
}
}


Expand Down