[sysprof] writer: use SP_CAPTURE_CURRENT_TIME
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof] writer: use SP_CAPTURE_CURRENT_TIME
- Date: Fri, 15 Apr 2016 11:55:38 +0000 (UTC)
commit f72306f5a87da04a31fdb2e47f3e6bf2c7ac60f7
Author: Christian Hergert <chergert redhat com>
Date: Fri Apr 15 04:46:50 2016 -0700
writer: use SP_CAPTURE_CURRENT_TIME
This should be nsec, not usec based time.
lib/sp-capture-writer.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/sp-capture-writer.c b/lib/sp-capture-writer.c
index 55c4503..caded66 100644
--- a/lib/sp-capture-writer.c
+++ b/lib/sp-capture-writer.c
@@ -213,7 +213,7 @@ sp_capture_writer_flush_jitmap (SpCaptureWriter *self)
jitmap.frame.len = len;
jitmap.frame.cpu = -1;
jitmap.frame.pid = getpid ();
- jitmap.frame.time = g_get_monotonic_time ();
+ jitmap.frame.time = SP_CAPTURE_CURRENT_TIME;
jitmap.frame.type = SP_CAPTURE_FRAME_JITMAP;
jitmap.n_jitmaps = self->addr_hash_size;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]