SamplePGO - Sort samples by source location when emitting as text.
authorDiego Novillo <dnovillo@google.com>
Thu, 19 Nov 2015 15:33:08 +0000 (15:33 +0000)
committerDiego Novillo <dnovillo@google.com>
Thu, 19 Nov 2015 15:33:08 +0000 (15:33 +0000)
commit5d8ee1bd0d8944ad9fcfe522e85394dc056255b6
treef33a3d9f2cc9ef8bc6ef0bcd84d11ba7f70e77b9
parent96664db5ff9572e1c19661c140e5327b3ae82660
SamplePGO - Sort samples by source location when emitting as text.

When dumping function samples or writing them out as text format, it
helps if the samples are emitted sorted by source location. The sorting
of the maps is a bit slow, so we only do it on demand.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253568 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ProfileData/SampleProf.h
lib/ProfileData/SampleProf.cpp
lib/ProfileData/SampleProfWriter.cpp
test/tools/llvm-profdata/gcc-gcov-sample-profile.test
test/tools/llvm-profdata/inline-samples.test