Last active
November 21, 2020 22:22
-
-
Save iht/50f90a7d18091705658ed40ba50bc3f9 to your computer and use it in GitHub Desktop.
Aggregate the output of Beam profiling and produce sorted file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import pstats | |
directory = 'profiling' | |
files = [ '%s/%s' % (directory, x) for x in os.listdir('%s/' % directory)] | |
p = pstats.Stats(*files) | |
p.sort_stats('cumulative').dump_stats('dataflow.prof') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment