jlfwong / flask_debugtoolbar_lineprofilerpanel

Line Profiler Panel for Flask Debug Toolbar
67 stars 12 forks source link

Can't profile inner functions #2

Open jlfwong opened 11 years ago

jlfwong commented 11 years ago

def foo():
    @line_profile
    def foo_inner():
        pass

This won't work because the reference to foo changes (local variable I believe)