Resolved total time issues by converting profile to pstats