jlfwong / jlfwong/flask_debugtoolbar_lineprofilerpanel

Can't profile inner functions

Open
#2 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
68
Forks
12
PR merge metrics
No merged PRs in 30d

Description

``` python

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

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

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the nested-function example from the issue and inspect how the line profiler panel resolves the decorated inner function. The work is done when an inner function defined inside another function can be profiled successfully; the payload does not name a source file or test to start from.

Written by the indexing model from the issue text.

Assessment

Tech stack
flask, python
Domain
devtools
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.