def run_as_module(self, prof):
        """Runs program as module."""
        try:
            with open(self._run_object, 'rb') as srcfile:
                code = compile(srcfile.read(), self._run_object, 'exec')
            prof.runctx(code, self._globs, None)
        except __HOLE__:
            pass
        self._object_name = self._run_object
dataset/ETHPy150Open nvdv/vprof/vprof/runtime_profile.py/RuntimeProfile.run_as_module