Buffer prof_log_stop

Make use of the new buffered writer for the output of `prof_log_stop`.
This commit is contained in:
Yinan Zhang
2019-08-07 14:34:34 -07:00
parent 5934846612
commit ad3f7dbfa0
2 changed files with 18 additions and 6 deletions

View File

@@ -61,7 +61,7 @@ static void *f_thread(void *unused) {
int i;
for (i = 0; i < N_PARAM; i++) {
void *p = malloc(100);
memset(p, 100, sizeof(char));
memset(p, 100, 1);
free(p);
}