Browse Source

[#81636] graph.py: fix the RAM subplot for non-Darwin

main
Adam Olech 7 months ago
parent
commit
c4f29ad6b7
  1. 5
      graph.py

5
graph.py

@ -156,11 +156,12 @@ def plot_stacked(ylabel, title, ram_file, column, tmpfs_color, other_cache_color
g('set style data histograms') g('set style data histograms')
g('set style histogram rowstacked') g('set style histogram rowstacked')
g('set key reverse below Left width -25') g('set key reverse below Left width -25')
if not is_darwin(): if is_darwin():
g(f"plot '{ram_file}' using 1:($3 + ${column}):{column} title 'RAM' with boxes palette")
else:
g(f"plot '{ram_file}' using 1:($3 + ${column}):{column} title 'RAM' with boxes palette, \ g(f"plot '{ram_file}' using 1:($3 + ${column}):{column} title 'RAM' with boxes palette, \
'' using 1:5 with boxes title 'Shared mem' lc rgb '{tmpfs_color}', \ '' using 1:5 with boxes title 'Shared mem' lc rgb '{tmpfs_color}', \
'' using 1:($3 - $5) with boxes title 'Other cache (freed automatically)' lc rgb '{other_cache_color}'") '' using 1:($3 - $5) with boxes title 'Other cache (freed automatically)' lc rgb '{other_cache_color}'")
g(f"plot '{ram_file}' using 1:($3 + ${column}):{column} title 'RAM' with boxes palette")
g('unset key') g('unset key')
# Read additional information from 'data.txt' comments # Read additional information from 'data.txt' comments

Loading…
Cancel
Save