summaryrefslogtreecommitdiff
path: root/gpsprof
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-09-21 05:00:58 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-09-21 05:00:58 -0400
commit57c223b2ba292bc14fba530cd38685540ca0484f (patch)
tree5241a66cee77c57d24a7c7f0e4f4f11b647b816d /gpsprof
parent0f6f9d2d7eeca50c92b5762aa7438e3e03562cfa (diff)
downloadgpsd-57c223b2ba292bc14fba530cd38685540ca0484f.tar.gz
Polis h the profiling code.
Diffstat (limited to 'gpsprof')
-rwxr-xr-xgpsprof4
1 files changed, 2 insertions, 2 deletions
diff --git a/gpsprof b/gpsprof
index 5e85eaa6..72993b5e 100755
--- a/gpsprof
+++ b/gpsprof
@@ -205,7 +205,7 @@ class rawplot:
def data(self, unused):
res = ""
for (tag, time, xmit, recv) in self.stats:
- res += "% 8s %2.9f %2.9f %2.9f\n" % (tag, time, xmit-time, recv-time)
+ res += "% 8s %2.9f %2.9f %2.9f\n" % (tag, time, xmit-time, recv-xmit)
return res
def plot(self, unused, session, device):
fmt = '''
@@ -264,7 +264,7 @@ def plotframe(await, fname, threshold, title):
print >>sys.stderr, "exactly one device must be attached.\n"
sys.exit(1)
device = copy.copy(session.data["devices"][0])
- sys.stderr.write("found %s device @%sbps..." % (device["driver"], device["bps"]))
+ #sys.stderr.write("found %s device @%sbps..." % (device["driver"], device["bps"]))
if session.data["class"] == "WATCH":
if "timing" in options and not session.data.get("timing"):
sys.stderr.write("gpsprof: timing is not enabled.\n")