def run_as_function(self, prof):
        """Runs object as function."""
        prof.enable()
        self._run_object(*self._run_args, **self._run_kwargs)
        prof.disable()
        self._object_name = 'function %s' % self._run_object.__name__
dataset/ETHPy150Open nvdv/vprof/vprof/runtime_profile.py/RuntimeProfile.run_as_function/original