root/vic/branches/cc/cc/o.sh @ 4694

Revision 4694, 1.1 KB (checked in by soohyunc, 4 years ago)

-- modified graph-ing script

including Tx queue length and cwnd in a single graph


  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Rev URL
Line 
1#!/bin/sh
2
3# packet seqno trace in time
4grep seqno trace.s | grep -v pid | awk '{if($1=="now:" && $3=="seqno:") print}' | awk '{print $2" "$4}' > seqno.tr
5cc/tools/asv seqno seqno.tr
6rm seqno.tr
7
8# start encoding
9grep h261_encode_start trace.s | grep -v pid | awk '{print $3" "100}' > encs.xg
10
11# end encoding
12grep h261_encode_end trace.s | grep -v pid | awk '{print $3" "100}' > ence.xg
13
14# encoding time difference
15grep enc_time trace.s | grep -v pid | awk '{if($1=="now:" && $3=="enc_time:") print}' | awk '{print $2"\t"$4}' > enct.xg
16
17# start grab
18grep start_grab trace.s | awk '{print $3" "100}' > grs.xg
19
20# end grab
21grep end_grab trace.s | awk '{print $3" "100}' > gre.xg
22
23# grabbing time difference
24grep grab_time trace.s | awk '{print $2"\t"$4}' > grt.xg
25
26# incoming XR
27grep incomingXR trace.s | awk '{print $3" "100}' > inXR.xg
28
29# cwnd
30grep cwnd trace.s | awk '{print $2" "$4}' > cwnd.xg
31
32# ALI
33grep ALI trace.s | awk '{print $2" "$4}' > ALI.xg
34
35# dropped packet seqno
36grep drop trace.s | awk '{print $2" "$4}' > drop.tr
37cc/tools/asv drop drop.tr
38rm drop.tr
39
40# tx queue len
41grep txq_end trace.s | awk '{print $2" "$4}' > txq.xg
Note: See TracBrowser for help on using the browser.