mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-08 16:36:14 +00:00
benchmarks/gem_exec_trace: Unmap each trace after replay
Just on the off chance someone is replaying a bunch of traces, remember to cleanup up. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
b483e68173
commit
98bcc18572
@ -249,6 +249,7 @@ static void replay(const char *filename)
|
||||
} while (ptr < end);
|
||||
clock_gettime(CLOCK_MONOTONIC, &t_end);
|
||||
close(fd);
|
||||
munmap(end-st.st_size, st.st_size);
|
||||
|
||||
printf("%s: %.3f\n", filename, elapsed(&t_start, &t_end));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user