GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||
GeezerVison is showing github.com — trace_events: add more process metadata by jasnell · Pull Request #21785 · nodejs/node Conversation
Member
Now that TracedValue has landed, add more detailed 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
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Now that TracedValue has landed, add more detailed process `__metadata` including versions, arch, platform, release detail, and argv/execArgv to the trace event log.
Collaborator
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
addaleax
reviewed
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would really like it if we could avoid the overhead of these calls when tracing is not enabled, especially if this is going to be a more common pattern?
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we include these headers where they are used, rather than (almost) globally?
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
addaleax
reviewed
|
|
There's a way. The difficulty with metadata events is that they are always implicitly enabled if any tracing at all is enabled. So we would need to separate them out to allow on demand creation. I can work on that. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
I'll be pushing a commit in a few minutes... but the way to do this is to attach a |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Ok, @addaleax ... take a look now. I'm using a Note: by switching to this, just to keep things simple, the process metadata no longer includes the argv and execArgv details since those are not around when the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
New CI: https://ci.nodejs.org/job/node-test-pull-request/15838/ |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Now that TracedValue has landed, add more detailed process `__metadata` including versions, arch, platform, release detail, and argv/execArgv to the trace event log. PR-URL: nodejs#21785 Reviewed-By: Anna Henningsen <[email protected]>
|
Landed in ededb4b 🎉 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Now that TracedValue has landed, add more detailed process `__metadata` including versions, arch, platform, release detail, and argv/execArgv to the trace event log. PR-URL: #21785 Reviewed-By: Anna Henningsen <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.