When I use the shell builtin time, I can pass any command I would pass to the shell without time. But when I use the external /usr/bin/time, I cannot pass a shell alias, because /usr/bin/time is naturally not aware of those:
$ /usr/bin/time ll
/usr/bin/time: cannot run ll: No such file or directory
How can I convince the shell to expand the alias for ll before passing it on to /usr/bin/time? Parsing the output of alias ll is tricky, in particular since the definition of the alias contains other aliases.
My reason for using /usr/bin/time is to measure peak memory usage.