title: Can the Pycharm profiler, cProfile, be set to profile only a couple of lines of code and not the whole script?
body: <p>Pycharm's standard profiler for python is cProfile or Yappi.<br>
  While using cProfile in Pycharm, you don't have to change or edit your code, you just have to use the graphical interface and press the <strong>profile</strong> button.<br>
  However, whenever I do this, Pycharm runs the whole script or file and gives me results. Is there a way to profile only a few lines of code in the script, or maybe a function, <em>In order to save time</em>?</p>
  <p>I have tried setting up break points and it didn't do the trick.</p>
  <p>Thank you in advance,</p>
  <p>Jamal</p>