當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。