mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 05:45:58 +00:00
tracer/rusage: fix format string args
The format string contains a process id, but we did not provice one. This caused us to log garbage since all args got shifted.
This commit is contained in:
parent
644584668f
commit
ede686c39b
1 changed files with 3 additions and 3 deletions
|
@ -249,8 +249,8 @@ do_stats (GstTracer * obj, guint64 ts)
|
||||||
G_UNLOCK (_proc);
|
G_UNLOCK (_proc);
|
||||||
cur_cpuload = (guint) gst_util_uint64_scale (dtproc / num_cpus,
|
cur_cpuload = (guint) gst_util_uint64_scale (dtproc / num_cpus,
|
||||||
G_GINT64_CONSTANT (1000), dts);
|
G_GINT64_CONSTANT (1000), dts);
|
||||||
gst_tracer_record_log (tr_proc, ts, MIN (avg_cpuload, 1000),
|
gst_tracer_record_log (tr_proc, (guint64) getpid (), ts,
|
||||||
MIN (cur_cpuload, 1000), tproc);
|
MIN (avg_cpuload, 1000), MIN (cur_cpuload, 1000), tproc);
|
||||||
/* *INDENT-ON* */
|
/* *INDENT-ON* */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -316,7 +316,7 @@ gst_rusage_tracer_class_init (GstRUsageTracerClass * klass)
|
||||||
NULL),
|
NULL),
|
||||||
NULL);
|
NULL);
|
||||||
tr_proc = gst_tracer_record_new ("proc-rusage.class",
|
tr_proc = gst_tracer_record_new ("proc-rusage.class",
|
||||||
"thread-id", GST_TYPE_STRUCTURE, gst_structure_new ("scope",
|
"process-id", GST_TYPE_STRUCTURE, gst_structure_new ("scope",
|
||||||
"type", G_TYPE_GTYPE, G_TYPE_UINT64,
|
"type", G_TYPE_GTYPE, G_TYPE_UINT64,
|
||||||
"related-to", GST_TYPE_TRACER_VALUE_SCOPE, GST_TRACER_VALUE_SCOPE_PROCESS,
|
"related-to", GST_TYPE_TRACER_VALUE_SCOPE, GST_TRACER_VALUE_SCOPE_PROCESS,
|
||||||
NULL),
|
NULL),
|
||||||
|
|
Loading…
Reference in a new issue