-
-
Notifications
You must be signed in to change notification settings - Fork 431
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
(I don't know if this is intended behavior, so I don't know if it's a bug.)
It seems scalene doesn't see the code for functions loaded by exec. If I have a file like this:
def function():
[x+x for x in range(100000)]
[x*x for x in range(100000)]
function()
function()
and run scalene scalene_test1.py, I get:
But if the file has this:
code = '''
def function():
[x+x for x in range(100000)]
[x*x for x in range(100000)]
'''
exec(code)
function()
function()
I get this:
What's up with that? Is this intended behavior?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working