I have a few cProfile output files that were generated by adding -m cProfile -o out.pstat
to the regular python command I run. Now I need to compare these files with attention to some significant differences between function calls. I can open these files in PyCharm and look at the data, but the data is huge. I need a way to load both snapshot files and write a script to parse it and flag suspicious functions.
How do I do that? It seems that there is no straightforward method to read the cProfile snapshots in Python.