microsoft / perfview

PerfView is a CPU and memory performance-analysis tool
http://channel9.msdn.com/Series/PerfView-Tutorial
MIT License
4.14k stars 707 forks source link

Chromium Timestamp is in microseconds #2013

Closed Suchiman closed 6 months ago

Suchiman commented 6 months ago

I converted a .nettrace file to the chromium format via dotnet-trace convert and noticed that my 15s long trace was only displayed as being 15ms long. After some digging and consulting the documentation, it appears that a timestamp expressed in milliseconds is being written into the ts field that expects a microsecond timestamp. image This bug has been previously reported here https://github.com/dotnet/diagnostics/issues/1315#issuecomment-653632216 but incorrectly classified as a bug in chromium. I believe this confusion might have been due to setting

writer.Write("\"displayTimeUnit\": \"ms\", ");

just a few lines below but alas this is only a display concern image