#!/bin/bash
while true; do cat /proc/$(pidof plasmashell)/maps | grep heap | perl -n -a -e '@M = split /-/,$F[0]; $b = hex $M[0]; $e = hex $M[1]; print $e-$b; print "\n"' | tee -a heap.log; sleep 10; done
