cprofile run function with arguments