Uh oh!
There was an error while loading. Please reload this page.
trace_events: add version metadata - #20852
Conversation
jasnell
commented
May 20, 2018
jasnell
commented
May 20, 2018
Failures in CI are known flakies |
cjihrig
left a comment
There was a problem hiding this comment.
Is there a reason not to more closely mimic process.versions?
jasnell
commented
May 21, 2018
Mimic in which way? |
There was a problem hiding this comment.
nit: I'm trying to understand the + 1. If you're skipping the v in the version string: 1) why? 2) it would be good to add a comment explaining what the + 1 does as it is not immediately obvious. I would prefer if the v was included too.
There was a problem hiding this comment.
i thought we had a lint rule against messing with pointers like that
There was a problem hiding this comment.
It is for consistency with the value of process.versions.node (which does not include the v)
There was a problem hiding this comment.
If we don't want the v why not use NODE_VERSION_STRING instead?
Line 65 in 32873c5
jasnell
commented
May 21, 2018
@ofrobots ... btw, I was going to output all of the versions with a single I don't want this to get too out of sync with the V8 version, but it would be helpful to have a |
cjihrig
commented
May 21, 2018
I meant using the same names (for example n-api vs napi), and including the other missing dependencies. |
jasnell
commented
May 25, 2018
Certainly can do that, yes. |
Use `TRACE_EVENT_METADATA1` to include just the node.js version for now. Later this can be expanded to include more version and platform details.
566c386 to
c2e2759Comparejasnell
commented
May 25, 2018
Updated .... After talking it over more with @ofrobots ... I removed everything but the node version in this to give us more flexibility later. We need to think about the best approach to handling complex data as opposed to emitting multiple trace events. Emitting the node version covers the most basic use case for this -- that is, knowing what Node.js version generated the trace file -- so it covers the immediate need. |
jasnell
commented
May 30, 2018
Use `TRACE_EVENT_METADATA1` to include just the node.js version for now. Later this can be expanded to include more version and platform details. PR-URL: #20852 Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
jasnell
commented
May 31, 2018
Landed in e60eed1 |
Use `TRACE_EVENT_METADATA1` to include just the node.js version for now. Later this can be expanded to include more version and platform details. PR-URL: #20852 Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Use
TRACE_EVENT_METADATA1to include Node.js, v8, and libuv versiondetails in the trace log (helpful for log analysis when trace detail
may vary from one Node.js version to another).
/cc @ofrobots
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes