Use yappi for profiling instead of cProfile.