Created on 25.11.2014
@author: Samuel
Functions:
profile(func, globs, locs)
profile
Profiles a given method.
Usage: profile("myMethod(*args)", globals(), locals())
profile("myMethod(*args)", globals(), locals())