[all-commits] [llvm/llvm-project] f1affe: [llvm-profgen][CSSPGO] Support count based aggrega...

ictwanglei via All-commits all-commits at lists.llvm.org
Tue Aug 3 17:57:15 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f1affe8dc88a27cb0d436b6ec4bd44ca5da336a9
      https://github.com/llvm/llvm-project/commit/f1affe8dc88a27cb0d436b6ec4bd44ca5da336a9
  Author: wlei <wlei at fb.com>
  Date:   2021-08-03 (Tue, 03 Aug 2021)

  Changed paths:
    A llvm/test/tools/llvm-profgen/Inputs/noinline-cs-noprobe.aggperfscript
    A llvm/test/tools/llvm-profgen/Inputs/noinline-cs-pseudoprobe.aggperfscript
    M llvm/test/tools/llvm-profgen/noinline-cs-noprobe.test
    M llvm/test/tools/llvm-profgen/noinline-cs-pseudoprobe.test
    M llvm/tools/llvm-profgen/PerfReader.cpp
    M llvm/tools/llvm-profgen/PerfReader.h

  Log Message:
  -----------
  [llvm-profgen][CSSPGO] Support count based aggregated type of hybrid perf script

This change tried to integrate a new count based aggregated type of perf script. The only difference of the format is that an aggregated count is added at the head of the original sample which means the same samples are repeated to the given count times. This is used to reduce the perf script size.
e.g.
```
2
	          4005dc
	          400634
	          400684
	    7f68c5788793
 0x4005c8/0x4005dc/P/-/-/0  ....
```
Implemented by a dedicated PerfReader `AggregatedHybridPerfReader`.

Differential Revision: https://reviews.llvm.org/D107192




More information about the All-commits mailing list