trace_events: add more process metadata
Now that TracedValue has landed, add more detailed
process __metadata
including versions, arch, platform,
release detail, and argv/execArgv to the trace event
log.
This adds an entry like:
{
"pid":46021,
"tid":46021,
"ts":4996201438,
"tts":31331,
"ph":"M",
"cat":"__metadata",
"name":"node",
"dur":0,
"tdur":0,
"args":{
"process":{
"versions":{
"http_parser":"2.8.0",
"node":"11.0.0-pre",
"v8":"6.7.288.46-node.14",
"uv":"1.22.0",
"zlib":"1.2.11",
"ares":"1.14.0",
"modules":"64",
"nghttp2":"1.32.0",
"napi":"3",
"openssl":"1.1.0h"
},
"arch":"x64",
"platform":"linux",
"release":{
"name":"node"
},
"argv":["./node"],
"execArgv":["--trace-event-categories","node.perf"]
}
}
}
Checklist
-
make -j4 test (UNIX), or
vcbuild test` (Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines