Skip to content
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

Pull 894 - Difficult to view chromium dotnet traces - Always shows 17 ms and can't visualize user code #1315

Closed
jnuic7 opened this issue Jul 3, 2020 · 6 comments
Assignees

Comments

@jnuic7
Copy link

jnuic7 commented Jul 3, 2020

@adamsitnik
Hey Adam, just attaching the chromium file

trace.chromium.txt

@jnuic7
Copy link
Author

jnuic7 commented Jul 3, 2020

@adamsitnik Heres a better one, have a dummy async method GetHello. I looks like it does change times but this time it is 13 ms which the trace should be longer then that
trace.chromium.txt

@adamsitnik
Copy link
Member

@jnuic7 could you please provide also the orginial .nettrace file that was converted to chromium

@jnuic7
Copy link
Author

jnuic7 commented Jul 3, 2020

@adamsitnik No problem, originally I was just using dotnet trace collect -p 50555 --format chromium but just converted one

trace.chromium.txt
trace.txt

@adamsitnik
Copy link
Member

@jnuic7 It looks like a chromium bug. It displays ms instead of s as a time unit.

I took the trace file that you have provided and exported it to chromium and speedscope using latest version of PerfView. The files can be found here: https://gist.github.com/adamsitnik/3f81adfba0ee85145f5c8ebbd8a25d85

After opening with chromium tracing and also web developer tools the time scale shows ms everywhere:

obraz

obraz

But speedscope shows the correct time:

obraz

@jnuic7
Copy link
Author

jnuic7 commented Jul 3, 2020

@adamsitnik Great and appreciate the help:) I'll close this out as it seems to be an issue with Chromium. Is there and chance filtering, maybe a dotnet trace param or something is in the works to just see user code?

@jnuic7 jnuic7 closed this as completed Jul 3, 2020
@adamsitnik
Copy link
Member

Great and appreciate the help:)

You welcome!

Is there and chance filtering, maybe a dotnet trace param or something is in the works to just see user code?

dotnet trace, speedscope and chromium don't support it, but PerfView does. Here is a tutorial that explains how to do it with PerfView by using a feature called grouping: https://channel9.msdn.com/Series/PerfView-Tutorial/PerfVIew-Tutorial-4-Grouping-And-Folding

BTW you can add this request to this issue: #1301 as we might create a new tool with more powerful filtering soon

@adamsitnik adamsitnik self-assigned this Nov 23, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Jun 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants