Skip to content

Instantly share code, notes, and snippets.

@osya
Created January 30, 2015 12:37
Show Gist options
  • Save osya/0c716f3cdf5f10a80c7d to your computer and use it in GitHub Desktop.
Save osya/0c716f3cdf5f10a80c7d to your computer and use it in GitHub Desktop.
Example of Python profiler
import requests
import datetime
import cProfile
import pstats
pr=cProfile.Profile()
pr.enable()
requests.get('http://torgi.gov.ru/lotSearchArchive.html')
pr.disable()
p = pstats.Stats(pr).sort_stats('tottime').print_stats()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment