title: How to profile my code?
body: <p>I want to know how to profile my code.</p>
  
  <p>I have gone through the docs, but as there were no examples given I could not get anything from it.</p>
  
  <p>I have a large code and it is taking so much time, hence I want to profile and increase its speed.
  I havent written my code in method, there are few in between but not completely.
  I don't have any main in my code. I want to know how to use profiling.
  I'm looking for some example or sample code of about how to profile.</p>
  
  <p>I tried psyco, i.e just addded two lines at the top of my code:</p>
  
  <pre><code>import psyco
  psyco.full()
  </code></pre>
  
  <p>Is this right? It did not show any improvement.
  Any other way of speeding up, please suggest.</p>