plot the last timing value
This commit is contained in:
		
							parent
							
								
									6f637ca79a
								
							
						
					
					
						commit
						701b6187a5
					
				@ -27,20 +27,24 @@ BEGIN	{							\
 | 
				
			|||||||
		count[foo] = 0;					\
 | 
							count[foo] = 0;					\
 | 
				
			||||||
		}						\
 | 
							}						\
 | 
				
			||||||
	}							\
 | 
						}							\
 | 
				
			||||||
								\
 | 
					
 | 
				
			||||||
 | 
					# for every line						\
 | 
				
			||||||
	{							\
 | 
						{							\
 | 
				
			||||||
	accu[$2] += $3;						\
 | 
						accu[$2] += $3;						\
 | 
				
			||||||
	count[$2]++;						\
 | 
						count[$2]++;						\
 | 
				
			||||||
	if (mini[$2] > $3)	mini[$2] = $3;			\
 | 
						if (mini[$2] > $3)	mini[$2] = $3;			\
 | 
				
			||||||
	if (maxi[$2] < $3)	maxi[$2] = $3;			\
 | 
						if (maxi[$2] < $3)	maxi[$2] = $3;
 | 
				
			||||||
 | 
						last[$2] = $3					\
 | 
				
			||||||
	}							\
 | 
						}							\
 | 
				
			||||||
								\
 | 
													\
 | 
				
			||||||
END	{							\
 | 
					END	{							\
 | 
				
			||||||
	for (foo=0; foo<nbframes; foo++) {			\
 | 
						for (foo=0; foo<nbframes; foo++) {			\
 | 
				
			||||||
		if (count[foo] > 0) {				\
 | 
							if (count[foo] > 0) {				\
 | 
				
			||||||
			mean = accu[foo] / count[foo];		\
 | 
								mean = accu[foo] / count[foo];		\
 | 
				
			||||||
			printf "%4d %4f %4d %4d\n", foo, mean, 	\
 | 
								printf "%4d %4f %4d %4d %4d\n",
 | 
				
			||||||
				mini[foo], maxi[foo];		\
 | 
									foo, mean,
 | 
				
			||||||
 | 
									mini[foo], maxi[foo],
 | 
				
			||||||
 | 
									last[foo];
 | 
				
			||||||
			}					\
 | 
								}					\
 | 
				
			||||||
		}						\
 | 
							}						\
 | 
				
			||||||
	}							\
 | 
						}							\
 | 
				
			||||||
@ -57,9 +61,14 @@ gnuplot	<< __EOC__
 | 
				
			|||||||
	set title "Séquence '${sequence}'"
 | 
						set title "Séquence '${sequence}'"
 | 
				
			||||||
	set xlabel "numéro de la trame"
 | 
						set xlabel "numéro de la trame"
 | 
				
			||||||
	set ylabel "temps en secondes"
 | 
						set ylabel "temps en secondes"
 | 
				
			||||||
	plot "/dev/shm/plot-timing.tmp" u 1:4 w l lc "#ff0000" t "maximum",	\
 | 
						plot "/dev/shm/plot-timing.tmp" u 1:4 w l 		\
 | 
				
			||||||
	     "/dev/shm/plot-timing.tmp" u 1:3 w l lc "#0000ff" t "minimum",	\
 | 
									lc "#ff0000" t "maximum",	\
 | 
				
			||||||
	     "/dev/shm/plot-timing.tmp" u 1:2 w l lc "#000000" t "moyenne",
 | 
						     "/dev/shm/plot-timing.tmp" u 1:3 w l		\
 | 
				
			||||||
 | 
									lc "#0000ff" t "minimum",	\
 | 
				
			||||||
 | 
						     "/dev/shm/plot-timing.tmp" u 1:2 w l		\
 | 
				
			||||||
 | 
									lc "#00ff00" t "moyenne",	\
 | 
				
			||||||
 | 
						     "/dev/shm/plot-timing.tmp" u 1:5 w l		\
 | 
				
			||||||
 | 
									lc "#000000" t "last"
 | 
				
			||||||
__EOC__
 | 
					__EOC__
 | 
				
			||||||
 | 
					
 | 
				
			||||||
convert -negate -level -33% $IMAGE WS/negatif.png
 | 
					convert -negate -level -33% $IMAGE WS/negatif.png
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user