How could I show more external codes when I use performance profiler to analyze CPU usage

Taotao Sun 20 Reputation points Microsoft Employee
2023-04-26T11:44:27.5533333+00:00

I want to do a performance profiler using visual studio. And after I get a diagsession. I clicked the most cpu cost functions repeated. After a few times, I get a stack when I could not click again. The stack is show in the picture. User's image

And as the picture showed, I have unchecked the "Enable just my code".
User's image

Could you tell me how to show the code stack for the external code instead of "Bottom of call stack"? Thank you very much.

Developer technologies | Visual Studio | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Quanmao LIU 0 Reputation points Microsoft Employee
    2023-05-18T09:37:34.4666667+00:00

    Was it build with debugging info? - should not use optimization to avoid removing source code and symbol info.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.