c program that logs a users run profile