DescriptionAvoid double-counting in GpuChannel memory tracking.
GpuChannel currently calculates current memory usage by iterating over
all stubs and summing their individual memory usage. This results in
double counting as a given stub may share its memory tracker with other
stubs, if they are in a share group.
To avoid double counting, we now iterate over stubs to collect a set of
unique MemoryTrackers, then sum the memory usage of each unique tracker.
BUG=512535
Committed: https://crrev.com/be3028d759f1ef49520f3466b92656af36e7c1de
Cr-Commit-Position: refs/heads/master@{#339746}
Patch Set 1 #
Messages
Total messages: 9 (4 generated)
|