Closed dcmoura closed 2 years ago
We decided on having the profiler in a separate script (spyql.prof
). Tentative code:
"""
Profile code with cProfile and writes output to the file spyql.stats.
Collecting profiling statistics slows down query execution.
"""
import cProfile
cProfile.run("spyql.cli.main()", "spyql.stats")
https://github.com/dcmoura/spyql/pull/8#discussion_r672556002