-
Notifications
You must be signed in to change notification settings - Fork 358
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
[dotnet-trace] Does not collect any call stacks #976
Comments
@VladimirKhil, how did you invoke |
@josalem I invoked it via SSH by command "dotnet-trace collect -p ". And yes, I could not stop it normally via <Ctrl+C> or . It just ignores my commands and continued capturing data. So I stopped it with <Ctrl+Z>. Do you it this is the source of the problem? Should I wait some more time for normal close command to complete? |
There is data that is captured after pressing <ctrl+c> called Rundown that includes, among other things, the jitted symbols. My hunch is that you didn't get any of those by closing the program with <ctrl+z> (I don't recall off the top of my head what signal gets sent to program with that, |
--duration flag works! Thank you very much. It works for 2 minutes 15 seconds instead of 30 seconds but thats not a big problem - it finishes normally and I get all stack traces. Thank you again! |
Depending on the size of your target application, compute power of your environment, and I/O throughput, Rundown can take many seconds. It sounds like your Rundown took a long time. I'm glad the duration flag worked for you 😄 |
Is there any documentation about what is UNMANAGED_CODE_TIME? When I look into the Thread Time stack, UNMANAGED_CODE_TIME always takes up 100% of the time. It seems very obscure as to what exactly it is collecting. |
I have installed and ran dotnet-trace 3.1.57502 on Ubuntu 18.04.2 LTS attaching to my ASP.NET Core 3.1 app running with systemctl. When opening collected trace data in PerfView I see only CPU_TIME and UNMANAGED_CODE_TIME records and no managed call stacks.
I tried to use different providers and flags but have no luck.
What am I doing wrong? Should I somehow modify my application to get correct data?
Thank you!
The text was updated successfully, but these errors were encountered: