mypeda.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:mgtools 作者: miyagaw61 项目源码 文件源码
def restore_snapshot(self, filename=None):
        """
        Restore a saved snapshot of current process from file
        Warning: this is not thread safe, do not use with multithread program

        Args:
            - file: saved snapshot

        Returns:
            - Bool
        """
        if not filename:
            filename = self.get_config_filename("snapshot")

        fd = open(filename, "rb")
        snapshot = pickle.load(fd)
        return self.give_snapshot(snapshot)


    #########################
    #   Memory Operations   #
    #########################
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号