This Question is Possibly Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
3 Replies Last post: Mar 15, 2010 12:48 PM by Oleg Stepanov  
Geoff Hart Newbie 4 posts since
Mar 12, 2010
Currently Being Moderated

Mar 12, 2010 4:52 AM

>50% of time spent in unknown code?

I'm working analyzing the performance using 4.0.547.70 in Vista-64 on a VB.Net .Net 2.0 application. I am running thread time sampling and there is one thread of interest that is doing all the processing. When I look at the results, it is showing most that half the time in Unknown Code. That is really not very helpful to have such a high percentage of the time obscured like that. Is it possible to find out what the program is doing during that time?

 

DotTrace.jpg

 

Thanks,

 

Geoff

Oleg Stepanov JetBrains 71 posts since
May 6, 2003
Currently Being Moderated
Mar 12, 2010 6:31 PM in response to: Geoff Hart
Re: >50% of time spent in unknown code?

Hi Geoff,

 

  This actually most likely means that at these moments there either were not managed frames on stack (i.e. native code was executed) or there were managed frames, but the currently executing function is native and has FPO on, so the stack walker couldn't go up and figure out the managed stack. We will change wording to "[Native or optimized code]" in future builds.

 

WBR, Oleg

Oleg Stepanov JetBrains 71 posts since
May 6, 2003
Currently Being Moderated
Mar 15, 2010 12:48 PM in response to: Geoff Hart
Re: >50% of time spent in unknown code?

Hi Geoff,

 

  Since dotTrace is currently a purely managed profiler, we don't show what native code is executed. We have plans to add native profiling support later, but currently we don't have it. Actually since these are most likely purely native call stacks, this may happen if you have a native host which runs your managed code and it might not be relevant to your application.

 

WBR, Oleg

More Like This

  • Retrieving data ...