#!/bin/bash cmd=$@ /usr/bin/time --output memory_usage.log --append --format "%E\t%U\t%S\t%M\t%t\t%x\t\"$cmd\"" $cmd