jarun / googler

:mag: Google from the terminal
GNU General Public License v3.0
6.11k stars 529 forks source link

Add time_it decorator to profile the most time-consuming methods in debug mode #383

Closed zmwangx closed 4 years ago

zmwangx commented 4 years ago

Could be useful for getting a sense of the rough performance of things without pulling out a full blown profiler.

Timing example on a really crappy Linux box:

Screen Shot 2020-10-10 at 10 06 00 PM

Related: #382.

jarun commented 4 years ago

Thank you!