diff options
author | José Fonseca <jfonseca@vmware.com> | 2014-06-20 11:20:08 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2014-06-24 16:30:34 +0100 |
commit | c5dd5032cdbff0b07ada55bf2ee0822c99ca82e4 (patch) | |
tree | f34cd1ab99cc7bdcc51f24595a650e472fd9faea /scripts | |
parent | 3af1243c679a1e9d1dad09520678b5ea0644064e (diff) |
cli/pickle: Pickle call flags as well.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/unpickle.py | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/scripts/unpickle.py b/scripts/unpickle.py index 50d8480a..edd5af7f 100755 --- a/scripts/unpickle.py +++ b/scripts/unpickle.py @@ -41,6 +41,20 @@ import re import cPickle as pickle +# Same as trace_model.hpp's call flags +CALL_FLAG_FAKE = (1 << 0) +CALL_FLAG_NON_REPRODUCIBLE = (1 << 1) +CALL_FLAG_NO_SIDE_EFFECTS = (1 << 2) +CALL_FLAG_RENDER = (1 << 3) +CALL_FLAG_SWAP_RENDERTARGET = (1 << 4) +CALL_FLAG_END_FRAME = (1 << 5) +CALL_FLAG_INCOMPLETE = (1 << 6) +CALL_FLAG_VERBOSE = (1 << 7) +CALL_FLAG_MARKER = (1 << 8) +CALL_FLAG_MARKER_PUSH = (1 << 9) +CALL_FLAG_MARKER_POP = (1 << 10) + + class Visitor: def __init__(self): @@ -163,7 +177,7 @@ class Rebuilder(Visitor): class Call: def __init__(self, callTuple): - self.no, self.functionName, self.args, self.ret = callTuple + self.no, self.functionName, self.args, self.ret, self.flags = callTuple self._hash = None def __str__(self): |