[all-commits] [llvm/llvm-project] 1a5299: [MemProf][NFC] Free large data structures after la...

Teresa Johnson via All-commits all-commits at lists.llvm.org
Fri Dec 15 11:38:34 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1a5299491a455356b4aae8ee47ceceebd00c2103
      https://github.com/llvm/llvm-project/commit/1a5299491a455356b4aae8ee47ceceebd00c2103
  Author: Teresa Johnson <tejohnson at google.com>
  Date:   2023-12-15 (Fri, 15 Dec 2023)

  Changed paths:
    M llvm/lib/ProfileData/InstrProfWriter.cpp

  Log Message:
  -----------
  [MemProf][NFC] Free large data structures after last use (#75120)

The MemProf InstrProfWriter uses a couple of MapVector for building the
lists of records it needs to write. Once its entries are all added to
the associated OnDiskChainedHashTableGenerator, it is no longer used.

Clearing these MapVectors, which grow quite large for large profiles,
saved 4G for a large memory profile.




More information about the All-commits mailing list