当前位置: 首页>>代码示例>>Python>>正文


Python debug.post_mortem方法代码示例

本文整理汇总了Python中volatility.debug.post_mortem方法的典型用法代码示例。如果您正苦于以下问题:Python debug.post_mortem方法的具体用法?Python debug.post_mortem怎么用?Python debug.post_mortem使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在volatility.debug的用法示例。


在下文中一共展示了debug.post_mortem方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __getstate__

# 需要导入模块: from volatility import debug [as 别名]
# 或者: from volatility.debug import post_mortem [as 别名]
def __getstate__(self):
        """ This controls how we pickle and unpickle the objects """
        try:
            thetype = self._vol_theType.__name__
        except AttributeError:
            thetype = self._vol_theType

        # Note: we lose the parent attribute here
        result = dict(offset = self.obj_offset,
                      name = self.obj_name,
                      vm = self.obj_vm,
                      native_vm = self.obj_native_vm,
                      theType = thetype)

        ## Introspect the kwargs for the constructor and store in the dict
        try:
            for arg in self.__init__.func_code.co_varnames:
                if (arg not in result and
                    arg not in "self parent profile args".split()):
                    result[arg] = self.__dict__[arg]
        except KeyError:
            debug.post_mortem()
            raise pickle.PicklingError("Object {0} at 0x{1:08x} cannot be cached because of missing attribute {2}".format(self.obj_name, self.obj_offset, arg))

        return result 
开发者ID:virtualrealitysystems,项目名称:aumfor,代码行数:27,代码来源:obj.py

示例2: run_imports

# 需要导入模块: from volatility import debug [as 别名]
# 或者: from volatility.debug import post_mortem [as 别名]
def run_imports(self):
        """Imports all the already found modules"""
        for i in self.modnames.keys():
            if self.modnames[i] is not None:
                try:
                    __import__(i)
                except Exception, e:
                    print "*** Failed to import " + i + " (" + str(e.__class__.__name__) + ": " + str(e) + ")"
                    # This is too early to have had the debug filter lowered to include debugging messages
                    debug.post_mortem(2) 
开发者ID:virtualrealitysystems,项目名称:aumfor,代码行数:12,代码来源:registry.py

示例3: run_imports

# 需要导入模块: from volatility import debug [as 别名]
# 或者: from volatility.debug import post_mortem [as 别名]
def run_imports(self):
        """Imports all the already found modules"""
        for i in self.modnames.keys():
            if self.modnames[i] is not None:
                try:
                    __import__(i)
                except Exception, e:
                    #print "*** Failed to import " + i + " (" + str(e.__class__.__name__) + ": " + str(e) + ")"
                    # This is too early to have had the debug filter lowered to include debugging messages
                    debug.post_mortem(2) 
开发者ID:botherder,项目名称:volatility,代码行数:12,代码来源:registry.py


注:本文中的volatility.debug.post_mortem方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。