summaryrefslogtreecommitdiff
path: root/trace_write.hpp
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2010-11-26 15:01:29 +0000
committerJosé Fonseca <jfonseca@vmware.com>2010-11-26 15:01:29 +0000
commit2250a0e42a0fcad757f38121859ce7de10384df3 (patch)
tree91f1f793b136d70c3e215200384b11ead3a21be3 /trace_write.hpp
parente90885a66a8053ee914ef22db96f13fba0ed1441 (diff)
More efficient call representation.
Diffstat (limited to 'trace_write.hpp')
-rw-r--r--trace_write.hpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/trace_write.hpp b/trace_write.hpp
index faa36a5e..9f9acdba 100644
--- a/trace_write.hpp
+++ b/trace_write.hpp
@@ -30,6 +30,13 @@ namespace Trace {
typedef unsigned Id;
+ struct FunctionSig {
+ Id id;
+ const char *name;
+ unsigned num_args;
+ const char **args;
+ };
+
struct BitmaskVal {
const char *name;
unsigned long long value;
@@ -44,13 +51,13 @@ namespace Trace {
void Open(void);
void Close(void);
- unsigned BeginEnter(const char *function);
+ unsigned BeginEnter(const FunctionSig &function);
void EndEnter(void);
void BeginLeave(unsigned call);
void EndLeave(void);
- void BeginArg(unsigned index, const char *name);
+ void BeginArg(unsigned index);
inline void EndArg(void) {}
void BeginReturn(void);