log_rusage can now also be used as a decorator