gpu: Automatically adjust time to sleep

Sometimes the time between two trace callbacks is not enough to collect
samples from GPU data sources. When that happens, we try to adjust the
sleeping time by doubling its value.

Signed-off-by: Antonio Caggiano <antonio.caggiano@collabora.com>
Reviewed-by: Rohan Garg <rohan.garg@collabora.com>
3 jobs for better-sleep in 2 minutes and 20 seconds (queued for 1 second)
Status Job ID Name Coverage
  Check
passed #6595988
clang-format

00:00:16

 
  Build
passed #6595990
aarch64
aarch64

00:02:02

passed #6595989
kvm
x86_64

00:01:22