mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 21:48:55 +00:00
tracer: tsplot: ensure multiplots use same xrange
Only this way one can visually align events with buffer graphs.
This commit is contained in:
parent
1a5f82fc0c
commit
3320c2ba5e
1 changed files with 24 additions and 20 deletions
|
@ -43,29 +43,33 @@ _PLOT_SCRIPT_HEAD = Template(
|
||||||
'''set term png truecolor size $width,$height
|
'''set term png truecolor size $width,$height
|
||||||
''')
|
''')
|
||||||
_PLOT_SCRIPT_BODY = Template(
|
_PLOT_SCRIPT_BODY = Template(
|
||||||
'''set output '$png_file_name'
|
'''
|
||||||
set multiplot layout 3,1 title '$pad_name'
|
set output '$png_file_name'
|
||||||
set style line 100 lc rgb '#dddddd' lt 0 lw 1
|
set multiplot layout 3,1 title '$pad_name'
|
||||||
set grid back ls 100
|
set style line 100 lc rgb '#dddddd' lt 0 lw 1
|
||||||
|
set grid back ls 100
|
||||||
|
|
||||||
set xlabel "Clock Time (sec.msec)"
|
set xlabel "Clock Time (sec.msec)"
|
||||||
set ylabel "Buffer Time (sec.msec)"
|
set xrange [*:*] writeback
|
||||||
set yrange [*:*]
|
set ylabel "Buffer Time (sec.msec)"
|
||||||
set ytics
|
set yrange [*:*]
|
||||||
plot '$buf_file_name' using 1:2 with linespoints notitle
|
set ytics
|
||||||
|
plot '$buf_file_name' using 1:2 with linespoints notitle
|
||||||
|
|
||||||
set ylabel "Duration (sec.msec)"
|
set xrange restore
|
||||||
plot '$buf_file_name' using 1:3 with linespoints title "cycle", \
|
set ylabel "Duration (sec.msec)"
|
||||||
'' using 1:4 with linespoints title "duration"
|
plot '$buf_file_name' using 1:3 with linespoints title "cycle", \
|
||||||
|
'' using 1:4 with linespoints title "duration"
|
||||||
|
|
||||||
set ylabel "Events"
|
set xrange restore
|
||||||
set yrange [$ypos_max:10]
|
set ylabel "Events"
|
||||||
set ytics format ""
|
set yrange [$ypos_max:10]
|
||||||
plot '$ev_file_name' using 1:4:3:(0) with vectors heads size screen 0.008,90 notitle, \
|
set ytics format ""
|
||||||
'' using 2:4 with points notitle, \
|
plot '$ev_file_name' using 1:4:3:(0) with vectors heads size screen 0.008,90 notitle, \
|
||||||
'' using 2:4:5 with labels font ',7' offset char 0,-0.5 notitle
|
'' using 2:4 with points notitle, \
|
||||||
unset multiplot
|
'' using 2:4:5 with labels font ',7' offset char 0,-0.5 notitle
|
||||||
''')
|
unset multiplot
|
||||||
|
''')
|
||||||
|
|
||||||
class TsPlot(Analyzer):
|
class TsPlot(Analyzer):
|
||||||
'''Generate a timestamp plots from a tracer log.
|
'''Generate a timestamp plots from a tracer log.
|
||||||
|
|
Loading…
Reference in a new issue