aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-07-23 16:00:45 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-07-23 16:00:45 +0200
commitaaf2a4921327326540edbd7ef6bf5154c9195ed1 (patch)
tree3571b2be5ef9afd91dae072f241d7dd424a715ff /include
parent3dd02321d92f369c139121c36532b841bcdb18cd (diff)
downloadchattymalloc-aaf2a4921327326540edbd7ef6bf5154c9195ed1.tar.gz
chattymalloc-aaf2a4921327326540edbd7ef6bf5154c9195ed1.zip
add tracing of execution times
Diffstat (limited to 'include')
-rw-r--r--include/chattymalloc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/chattymalloc.h b/include/chattymalloc.h
index e009eff..4e8100f 100644
--- a/include/chattymalloc.h
+++ b/include/chattymalloc.h
@@ -19,6 +19,7 @@ along with chattymalloc. If not, see <http://www.gnu.org/licenses/>.
#include <stdint.h> // uint8_t
#include <sys/types.h> // pid_t
+#include <time.h> // pid_t
enum functions {
UNINITIALIZED,
@@ -35,6 +36,7 @@ enum functions {
};
typedef struct trace {
+ struct timespec duration;
void *ptr;
size_t size;
size_t var_arg;