aboutsummaryrefslogtreecommitdiff
path: root/ltrace.h
diff options
context:
space:
mode:
authorJuan Cespedes <cespedes@debian.org>2003-02-03 00:22:30 +0100
committerJuan Cespedes <cespedes@debian.org>2003-02-03 00:22:30 +0100
commitd65efa37b1fd73305ce4469841dc760514d74202 (patch)
tree4ce0d1b6a940145d228432044c535040af649e2c /ltrace.h
parenta0ccf39a68c0fcdf2165bde0f9b70ed12fc61cd8 (diff)
downloadltrace-d65efa37b1fd73305ce4469841dc760514d74202.tar.gz
Version 0.3.30
* Implemented -T option (show time spent inside each call) * Alphabetically sort options in help and manual page * Added -c option (summary of calls on program exit)
Diffstat (limited to 'ltrace.h')
-rw-r--r--ltrace.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/ltrace.h b/ltrace.h
index 8d6c6b4..b4f4adf 100644
--- a/ltrace.h
+++ b/ltrace.h
@@ -2,6 +2,7 @@
#define _HCK_LTRACE_H
#include <sys/types.h>
+#include <sys/time.h>
#include <stdio.h>
#include "defs.h"
@@ -70,6 +71,7 @@ struct callstack_element {
} c_un;
int is_syscall;
void * return_addr;
+ struct timeval time_spent;
};
#define MAX_CALLDEPTH 64
@@ -116,6 +118,12 @@ struct event {
} e_un;
};
+struct opt_c_struct {
+ int count;
+ struct timeval tv;
+};
+extern struct dict * dict_opt_c;
+
extern struct process * list_of_processes;
extern void * instruction_pointer;