Unverified Commit 35a003c2 authored by Teresa Johnson's avatar Teresa Johnson Committed by GitHub
Browse files

[MemProf][NFC] Clear each IndexedMemProfRecord after it is written (#75205)

The on-disk hash table for the memprof writer holds copies of all the
memprof records to be written. These hold a lot of memory in aggregate,
due to the lists of alloc sites (which each have a list of context
frames) and call sites. Clear each one after emitting it.

This drops the peak memory when writing a very large indexed memprof
profile by about 2.5G.
parent 1a529949
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment