Repository navigation
Chromium trace file format exporter - #1113
Brian Robbins (brianrob) merged 8 commits into
Conversation
|
This is phenomenal Adam Sitnik (@adamsitnik)! I'm happy to see that experiment prove helpful 😃 CC - Tom McDonald (@tommcdon) Sung Yoon Whang (@sywhang): this will be a great new way to view traces on non-Windows (and Windows for that matter) platforms. |
|
Adam Sitnik (@adamsitnik) this is great. Does the chromium view show you stacks? |
Yes, when I select something from the graph (every sample is represented as event and it's clickable) in the The "DevTools View" (F12) can also show it, but it requires the user to expand the call stack manually by clicking on the arrow ;/ Also, if you zoom in the time you can see method names: |
|
That's awesome! Let me take a look at the code diff here and get back to you. |
Brian Robbins (brianrob)
left a comment
There was a problem hiding this comment.
LGTM. Thanks Adam Sitnik (@adamsitnik)!



While working on improving our results in TechEmpower I realized that we don't have any way of visualizing the work of all CPUs on a single screen using Linux. Speedscope is great, but it has a per-thread view and it's hard to diagnose threading issues. I was basically missing VS Concurrency Visualizer on Linux.
I've reminded myself about the work John Salem (@josalem) did in dotnet/diagnostics#447 (comment) to implement an exporter to Chromium Trace Event File format.
By using it I was able to quickly identify one major bottleneck and improve almost all TechEmpower benchmarks by 2-10% RPS (including the super-optimized Plaintext).
How to use it:
Go to chromium and type
chrome://tracing/(oredge://tracing/if you are using latest Edge)Choose "Load" from the top left corner, select the exported trace file and click open
An alternative: Go to Chromium, press F12 (to open Developer Tools) and choose "Load profile" from top left corner:
The Trace Event Format is very similar to speedscope and I was able to reuse 95% of speedscope exporter code and just extend it with the missing 5%.
This PR combined with #1112 is going to allow me to extend
dotnet tracewith the possibility to convert.nettraceand.trace.zipfiles to the new file format and improve our user experience on Linux./cc Brian Robbins (@brianrob) Tom Deseyn (@tmds) Noah Falk (@noahfalk)