ITADN

[Improvements] Sorted thread order does not necessarily align with the order in firefox profiler

#744Openjsjtxietian 创建于 2026-02-02
J
jsjtxietiancommented
Right now samply has https://github.com/mstange/samply/blob/382a2f9318636651d92ce0d85b13022b973386c5/fxprof-processed-profile/src/thread.rs#L197-L212 which will sort the thread based on some criteria, but I find that even if I have it sorted, firefox profiler somehow does not respect it, so I took a look at ultra and find it will prefix the thread with a number: https://github.com/xoofx/ultra/blob/d68286cd706eb9232582ce568ef1e874b5dbc7f8/src/Ultra.Core/EtwConverterToFirefox.cs#L232 It can solve the problem of thread ordering. Or maybe just use `keepProfileThreadOrder` ?
0 条评论