summaryrefslogtreecommitdiff
path: root/gpsprof
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-02-16 19:45:42 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-02-16 19:45:42 +0000
commit47680037f88ea0e92ed8e1848d0ed6182431208a (patch)
treedb27767482e1aa59a44c8e016e1e9586e4a60601 /gpsprof
parent8f1429d576b28272710533a190e42f9b685b82dd (diff)
downloadgpsd-47680037f88ea0e92ed8e1848d0ed6182431208a.tar.gz
Include lengths in raw plot data for sanity-checking purposes.
Diffstat (limited to 'gpsprof')
-rwxr-xr-xgpsprof27
1 files changed, 14 insertions, 13 deletions
diff --git a/gpsprof b/gpsprof
index 5c7650f2..57f25451 100755
--- a/gpsprof
+++ b/gpsprof
@@ -58,17 +58,18 @@ class rawplot:
"All measurement, no deductions."
name = "raw"
def header(self, fp):
- fp.write("# ")
- for hn in ("T1+E1", "D1", "W", "E2", "T2", "D2"):
+ fp.write("#\t")
+ for hn in ("T1", "E1", "D1", "W", "E2", "T2", "D2"):
fp.write("%8s\t" % hn)
- fp.write("tag\n# ")
- for i in range(0, 6):
+ fp.write("tag\n#-\t")
+ for i in range(0, 7):
fp.write("--------\t")
fp.write("--------\n")
def formatter(self, session, fp):
- fp.write("%2.6f %2.6f %2.6f %2.6f %2.6f %2.6f %2.6f # %s\n" \
- % (session.rs232,
+ fp.write("%2d %2.6f %2.6f %2.6f %2.6f %2.6f %2.6f %2.6f # %s\n" \
+ % (session.length,
+ session.rs232,
session.d_recv_time,
session.d_decode_time,
session.poll_time,
@@ -83,13 +84,13 @@ set autoscale
set key below
set key title "Raw latency data, %s, %dN%d, cycle %ds"
plot \
- "%s" using 0:7 title "D2 = Client decode time" with impulses, \
- "%s" using 0:6 title "T2 = TCP/IP latency" with impulses, \
- "%s" using 0:5 title "E2 = Daemon encode time" with impulses, \
- "%s" using 0:4 title "W = Poll wait time" with impulses, \
- "%s" using 0:3 title "D1 = Daemon decode time" with impulses, \
- "%s" using 0:2 title "E1 = GPS latency" with impulses, \
- "%s" using 0:1 title "T1 = RS232 time" with impulses
+ "%s" using 0:8 title "D2 = Client decode time" with impulses, \
+ "%s" using 0:7 title "T2 = TCP/IP latency" with impulses, \
+ "%s" using 0:6 title "E2 = Daemon encode time" with impulses, \
+ "%s" using 0:5 title "W = Poll wait time" with impulses, \
+ "%s" using 0:4 title "D1 = Daemon decode time" with impulses, \
+ "%s" using 0:3 title "E1 = GPS latency" with impulses, \
+ "%s" using 0:2 title "T1 = RS232 time" with impulses
'''
return fmt % (title,
session.baudrate, session.stopbits, session.cycle,