MemoryUsageView.st
branchjv
changeset 16571 cf319f2e56d0
parent 16269 f75bf11d55af
parent 16516 802f3f3d8a8b
child 17132 17d361c666c2
equal deleted inserted replaced
16570:dc5e958a20dc 16571:cf319f2e56d0
   891             allocRate := entry instanceAllocationRate.
   891             allocRate := entry instanceAllocationRate.
   892             memRate := entry memoryAllocationRate.
   892             memRate := entry memoryAllocationRate.
   893             s1 := allocRate printString.
   893             s1 := allocRate printString.
   894             s2 := memRate printString.
   894             s2 := memRate printString.
   895             allocRate > 0 ifTrue:[
   895             allocRate > 0 ifTrue:[
   896                 s1 := s1 colorizeAllWith:(Color red).
   896                 s1 := s1 withColor:#red.
   897                 s2 := s2 colorizeAllWith:(Color red).
   897                 s2 := s2 withColor:#red.
   898             ] ifFalse:[
   898             ] ifFalse:[
   899                 allocRate < 0 ifTrue:[
   899                 allocRate < 0 ifTrue:[
   900                     s1 := s1 colorizeAllWith:(Color green darkened).
   900                     s1 := s1 withColor:(Color green darkened).
   901                     s2 := s2 colorizeAllWith:(Color green darkened).
   901                     s2 := s2 withColor:(Color green darkened).
   902                 ]
   902                 ]
   903             ].
   903             ].
   904             line := line , (s1 leftPaddedTo:countLen).
   904             line := line , (s1 leftPaddedTo:countLen).
   905             line := line , (s2 leftPaddedTo:bytesUsedSize).
   905             line := line , (s2 leftPaddedTo:bytesUsedSize).
   906 
   906