Skip to content

Add support for implicit usage #30

@AHJiapengZhang

Description

@AHJiapengZhang

In python for example, a function may be called implicitly by functools.reduce and functools.partial etc. On the surface it looks it's another function that is running, but under the hood it's still the function of our interest that is running. But couldn't the plugin is not able to detect such usage.

Example:

from functools import partial

def function(a, b, c):
    print(a, b, c)
    
    
f = partial(function, 1, 2)
f(3)
image Here the function f should be captured in the graph. Because it's this `f` that is invoking the underlying `function` we have defined.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions