diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2020-07-23 16:00:45 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2020-07-23 16:00:45 +0200 |
| commit | aaf2a4921327326540edbd7ef6bf5154c9195ed1 (patch) | |
| tree | 3571b2be5ef9afd91dae072f241d7dd424a715ff /include/chattymalloc.h | |
| parent | 3dd02321d92f369c139121c36532b841bcdb18cd (diff) | |
| download | chattymalloc-aaf2a4921327326540edbd7ef6bf5154c9195ed1.tar.gz chattymalloc-aaf2a4921327326540edbd7ef6bf5154c9195ed1.zip | |
add tracing of execution times
Diffstat (limited to 'include/chattymalloc.h')
| -rw-r--r-- | include/chattymalloc.h | 2 |
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; |
