def URLFreqRespTime(urlstatsdict):
 resptime = []
 binner = _ExponentialBinner(10, 2)
 maxbins = 0
 for (url, urlstats) in urlstatsdict.iteritems():
  urlresptime = sorted(urlstats.GetResponseTimeList())
  urlbin = binner.Bin(urlresptime)
  maxbins = max(maxbins, len(urlbin))
  resptime.append((url, urlresptime, urlbin))
 resptime.sort(key=(lambda triple: len(triple[1])), reverse=True)
 intervals = binner.Intervals(maxbins)
 return (resptime, intervals)

def URLFreqRespTime ( urlstatsdict ) : resptime = [ ] binner = _ExponentialBinner ( 10 , 2 ) maxbins = 0 for ( url , urlstats ) in urlstatsdict . iteritems ( ) : urlresptime = sorted ( urlstats . GetResponseTimeList ( ) ) urlbin = binner . Bin ( urlresptime ) maxbins = max ( maxbins , len ( urlbin ) ) resptime . append ( ( url , urlresptime , urlbin ) ) resptime . sort ( key = ( lambda triple : len ( triple [ 1 ] ) ) , reverse = True ) intervals = binner . Intervals ( maxbins ) return ( resptime , intervals )
computes request counts in different response time ranges for histograms .