1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

Use microtime, not getmicrotime, to note the times in the malloc and

free histories.
This commit is contained in:
Greg Lehey 1999-03-19 07:14:18 +00:00
parent 6e6d6dd86e
commit 82ca4fa74c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=44884

View File

@ -112,7 +112,7 @@ MMalloc(int size, char *file, int line)
f++; /* skip the / */
i = malloccount++;
total_malloced += size;
getmicrotime(&malloced[i].time);
microtime(&malloced[i].time);
malloced[i].seq = mallocseq++;
malloced[i].size = size;
malloced[i].line = line;
@ -147,7 +147,7 @@ FFree(void *mem, char *file, int line)
else
f++; /* skip the / */
getmicrotime(&freeinfo[lastfree].time);
microtime(&freeinfo[lastfree].time);
freeinfo[lastfree].seq = malloced[i].seq;
freeinfo[lastfree].size = malloced[i].size;
freeinfo[lastfree].line = line;