[tor-bugs] #2551 [Metrics]: Torperf should output circuit build times

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Wed Feb 23 13:30:07 UTC 2011


#2551: Torperf should output circuit build times
-----------------------------------------------------------------+----------
 Reporter:  mikeperry                                            |          Owner:  mikeperry   
     Type:  enhancement                                          |         Status:  needs_review
 Priority:  normal                                               |      Milestone:              
Component:  Metrics                                              |        Version:              
 Keywords:  TorPerfIteration20110305 MikePerryIteration20110305  |         Parent:              
   Points:  3                                                    |   Actualpoints:              
-----------------------------------------------------------------+----------

Comment(by karsten):

 Python gives me this traceback:

 {{{
 WARN[Wed Feb 23 13:10:14 2011]:No event for: 650 BUILDTIMEOUT_SET COMPUTED
 TOTAL_TIMES=1000 TIMEOUT_MS=27131 XM=1412 ALPHA=0.544520
 CUTOFF_QUANTILE=0.800000 TIMEOUT_RATE=0.158000 CLOSE_MS=284850
 CLOSE_RATE=0.064000
 Traceback (most recent call last):
   File "/srv/torperf.torproject.org/torperf/TorCtl/TorCtl.py", line 746,
 in _eventLoop
     self._handleFn(timestamp, reply)
   File "/srv/torperf.torproject.org/torperf/TorCtl/TorCtl.py", line 1347,
 in _handle1
     l.listen(event)
   File "/srv/torperf.torproject.org/torperf/TorCtl/TorCtl.py", line 1292,
 in listen
     self._map1.get(event.event_name, self.unknown_event)(event)
   File "../extra_stats.py", line 53, in buildtimeout_set_event
     result = b.event_name + " " +b.body
 AttributeError: BuildTimeoutSetEvent instance has no attribute 'body'
 }}}

 Are we using the same !TorCtl?  I'm running
 7329ceb4fe44c3557742ea596aeca7ea5f9e76f7.

 I hot-fixed this by replacing `b.body` with `"(unknown body)"` just to
 make it work.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/2551#comment:11>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list