I submitted a [feature request to dotnet-trace](https://github.com/dotnet/diagnostics/issues/3480) to have this handled automatically, possibly with our solution that was implemented in https://github.com/Granulate/gprofiler/pull/412. If that feature gets implemented, we should upgrade our dotnet-trace version and remove this patch.