how to get native call stack and how to get how many times a method is called ? #2163
-
Hi Guys, Secondly, how to get JIT related info ? e:g:- how many times a method is being invoked ? can we achieve by using this tool ? Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Could you elaborate on what you are requesting? Are you ask for nettrace (the standard output format of dotnet-trace) to include native stack frames when stack information is gathered for each event? Or are you looking for a general mechanism of capturing stack information at a given point in time. If the latter, we plan to add a
JITing is effectively the translation of managed code to native instructions. These seem to be the events for JIT: I'm not aware of an event that indicates the number of invocations of any given method. There is the CLRStackWalk event that is sent that represents the frames of a callstack, but these are only produced when another event is raised. If there is a broader ask for newer/different functionality, then it's better to log an issue in either https://github.com/dotnet/runtime or https://github.com/dotnet/diagnostics. |
Beta Was this translation helpful? Give feedback.
Could you elaborate on what you are requesting? Are you ask for nettrace (the standard output format of dotnet-trace) to include native stack frames when stack information is gathered for each event? Or are you looking for a general mechanism of capturing stack information at a given point in time. If the latter, we plan to add a
/stack(s)
route to thedotnet-monitor
tool to collect the stack frames of a target process. These may include native stack frames (I'll have to check the current implementation that is being developed at this time).