Improve dotnet-pgo output and fix null type handles (#53494)
authorJakob Botsch Nielsen <Jakob.botsch.nielsen@gmail.com>
Fri, 11 Jun 2021 21:00:20 +0000 (23:00 +0200)
committerGitHub <noreply@github.com>
Fri, 11 Jun 2021 21:00:20 +0000 (21:00 +0000)
commit146b3b16d77b26905ec78f024161d1534f8ee0ed
tree911ad3a7d3d1245475d20f98dc1dd520a2cdd8eb
parentdd72b1d2c48d4ab7009ca228dd4793ef7c86d5c2
Improve dotnet-pgo output and fix null type handles (#53494)

* Improve dotnet-pgo output and fix null type handles

* When comparing .mibc files, find a unique name to print for both files
  by repeatedly appending another parent directory on it.

* When comparing .mibc files, print a comparison of type handle
  histogram data

* Fix a potential division by zero

* Print some info when producing .mibc that are based on samples/LBR
  data

* Fix .mibc read type handles with value 0 to actually return IsNull

* Use different devirt threshold for interfaces and classes

* Add ClassProfileFlags to PgoFormat.cs
src/coreclr/tools/Common/Pgo/PgoFormat.cs
src/coreclr/tools/aot/ILCompiler.ReadyToRun/IBC/MIbcProfileParser.cs
src/coreclr/tools/dotnet-pgo/Program.cs