Added stat_filename kw param to profile

Makes it easy to analyse resulting stats with pstats module making life easier if there is a lot of profiling data generated.