fziglio at kemper.freedesktop.org
Fri Feb 5 15:49:26 UTC 2016
server/red-worker.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Author: Frediano Ziglio <fziglio at redhat.com>
Date: Thu Feb 4 16:10:24 2016 +0000
record: save real time during recording
Instead of using CPU time use a timer depending on real times.
Currently that time in the record log is not used.
However if we want to reproduce problems with stream would be useful
to have real times instead.
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
Acked-by: Pavel Grunt <pgrunt at redhat.com>
diff --git a/server/red-worker.c b/server/red-worker.c
index df24a5b..e70c9df 100644
@@ -242,7 +242,7 @@ static int red_process_display(RedWorker *worker, int *ring_is_empty)
red_record_qxl_command(worker->record_fd, &worker->mem_slots, ext_cmd,
worker->display_poll_tries = 0;
@@ -1221,7 +1221,7 @@ static void worker_dispatcher_record(void *opaque, uint32_t message_type, void *
RedWorker *worker = opaque;
- red_record_event(worker->record_fd, 1, message_type, stat_now(CLOCK_THREAD_CPUTIME_ID));
+ red_record_event(worker->record_fd, 1, message_type, stat_now(CLOCK_MONOTONIC));
static void register_callbacks(Dispatcher *dispatcher)
More information about the Spice-commits