title: commenting out @profile decorators when line-profiling
body: <p>Popular solution for Python line profiling seems to be <code>kernprof -l script.py</code>, which requires adding "@profile" decorators to functions you want to profile. Running the same code without as <code>python script.py</code> will complain "name 'profile' not defined" so you have to comment out <code>@profile</code> lines. What's a good work-around to switch between "profile" and non-profile modes without having to comment out those lines?</p>