-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracing use cases and interface #31
Comments
I think a good first step would be to make sure that the tracing infrastructure can do what the dtrace/etw/lttng/systemtap USDT probes do now. There are only a handful of them so that shouldn't be a huge undertaking. For posterity:
(The DTRACE_ prefix is for historical reasons, we should rename them.) Once that works, we can think about adding trace points to e.g. the ArrayBuffer allocator, the various Wrap constructors/destructors, and so on. Sounds reasonable? Who's volunteering? |
I'm fine to implement that, but what would the API be? The hooks I'm thinking of would live in the native code, not in JS. Additionally I think it's a poor JS API decision to simply call the function and say "it's a noop". Because in reality it isn't. These should be conditionally wrapped, regardless of how ugly it looks. Especially if they're going to be injected into more and more locations in the future. |
From nodejs/node#4496:
Assuming that you define hooks as "an API to access trace data": It would be neat to see a JS API for that. Main reason as outlined in nodejs/node#4496:
Being able to retrieve this information from JS directly would mean that monitoring tools could ship with fewer addons. |
I didn't mean there wouldn't be a JS API, only that the hooks/counters would exist in the native side. |
closing old AsyncWrap issues, please start a new thread if appropriate The API and format discussion is continuing in #53 |
We discussed during the last WG about the usage interface for the V8 tracing API (on-demand vs. continuous streaming) but we should define some concrete use cases and define as our goal to achieve a usable interface for consuming and/or retrieving all the tracing informations.
The text was updated successfully, but these errors were encountered: