Skip to content

Commit

Permalink
memory viewer external fragmentation shouldn't include padding.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 557830844
  • Loading branch information
trisolaran authored and Copybara-Service committed Aug 17, 2023
1 parent a9ddc74 commit 9106124
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ export class MemoryUsage {
(preprocess.entryComputationParametersMib || 0) * 1024 * 1024;
this.hloTempSizeBytes = this.peakHeapSizeBytes -
(preprocess.indefiniteBufferAllocationMib || 0) * 1024 * 1024;
const framenentationSizeBytes = this.peakHeapSizeBytes -
(preprocess.peakUnpaddedHeapMib || 0) * 1024 * 1024;
const framenentationSizeBytes =
this.peakHeapSizeBytes - (preprocess.peakHeapMib || 0) * 1024 * 1024;
if (this.hloTempSizeBytes) {
this.hloTempFragmentation =
framenentationSizeBytes / this.hloTempSizeBytes;
Expand Down

0 comments on commit 9106124

Please sign in to comment.