add a profile function for use in bulk load scripts and other long-running scenarios