[PATCH] D16727: [Profiling] Write out sparse indexed profiles

Vedant Kumar via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 29 08:41:45 PST 2016


vsk created this revision.
vsk added reviewers: davidxl, slingn.
vsk added a subscriber: llvm-commits.

Instead of writing out InstrProfRecords which contain only 0 counts, skip them.

The Xcode team asked for this so that the (often sparse) profiles gathered from UI tests take up less space.

http://reviews.llvm.org/D16727

Files:
  include/llvm/ProfileData/InstrProfWriter.h
  lib/ProfileData/InstrProfWriter.cpp
  test/tools/llvm-profdata/general.proftext
  test/tools/llvm-profdata/weight-instr.test
  tools/llvm-profdata/llvm-profdata.cpp
  unittests/ProfileData/CoverageMappingTest.cpp
  unittests/ProfileData/InstrProfTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16727.46388.patch
Type: text/x-patch
Size: 19903 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160129/68e1a06f/attachment.bin>


More information about the llvm-commits mailing list