vprof/base_profiler.py
def init_function(self, run_object):
        """Initializes profiler with a function."""
        self.profile = self.profile_function
        self._run_object, self._run_args, self._run_kwargs = run_object
        filename = inspect.getsourcefile(self._run_object)
        self._object_name = '%s @ %s (function)' % (
            self._run_object.__name__, filename)
def init_function(self, run_object):
        self.profile = self.profile_function
        self._run_object, self._run_args, self._run_kwargs = run_object
        filename = inspect.getsourcefile(self._run_object)
        self._object_name = '%s @ %s (function)' % (
            self._run_object.__name__, filename)
def init_function ( self , run_object ) : self . profile = self . profile_function self . _run_object , self . _run_args , self . _run_kwargs = run_object filename = inspect . getsourcefile ( self . _run_object ) self . _object_name = '%s @ %s (function)' % ( self . _run_object . __name__ , filename )
Initializes profiler with a function.
Initializes profiler with a function .