From c4f29ad6b741f8fd06f8c5914b38a48d1bc7b2f8 Mon Sep 17 00:00:00 2001 From: Adam Olech Date: Mon, 25 Aug 2025 16:04:33 +0200 Subject: [PATCH] [#81636] graph.py: fix the RAM subplot for non-Darwin --- graph.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/graph.py b/graph.py index d0fe712..34d5734 100644 --- a/graph.py +++ b/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 histogram rowstacked') 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, \ '' 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}'") - g(f"plot '{ram_file}' using 1:($3 + ${column}):{column} title 'RAM' with boxes palette") g('unset key') # Read additional information from 'data.txt' comments