summaryrefslogtreecommitdiff
path: root/src/charts.h
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@gnugeneration.com>2016-09-08 23:52:31 -0700
committerVito Caputo <vcaputo@gnugeneration.com>2016-09-09 14:17:08 -0700
commit8ef5fccc1ad2f5acb5530a438de631153e4ad945 (patch)
treefe9792b77766e31728b1d2d04d2461858ef45443 /src/charts.h
parente755f84c193b46876f81fe149a76222a62625466 (diff)
overlay: short-circuit draw_heirarchy_row() if unchanged
If vmon hasn't seen any heirarchical changes, and we aren't forcing a redraw, and the process information being shown isn't changed, don't bother re-rendering the same thing the overlay already contains. This can be further improved, like if only wchan changed and nothing else, only redraw the wchan column for the relevant row. It gets tricky quickly though, because a new wchan could be wider than the column currently permits for example, then we'd need to go render all the rows to the new wchan column width... It's simpler to just redraw it all if anything has changed, and this stuff doesn't generally change that frequently in practice so it's pretty effective as-is.
Diffstat (limited to 'src/charts.h')
0 files changed, 0 insertions, 0 deletions
© All Rights Reserved