Skip to content

Commit

Permalink
deps: log V8 version in profiler log file
Browse files Browse the repository at this point in the history
Patch from issue 800293002 authored by ben@strongloop.com

Review URL: https://codereview.chromium.org/806143002

PR-URL: nodejs/node-v0.x-archive#9043
Reviewed-by: Trevor Norris <trev.norris@gmail.com>
Reviewed-By: Timothy J Fontaine <tjfontaine@gmail.com>
  • Loading branch information
bnoordhuis authored and trevnorris committed Feb 4, 2015
1 parent ff32b81 commit 431eb17
Showing 1 changed file with 9 additions and 0 deletions.
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

0 comments on commit 431eb17

Please sign in to comment.