def RPCVariation(reqsummary, rpcsummaries):
 rpc_variation = []
 markers = [0.1, 0.25, 0.75, 0.9]
 percentiles = _GetPercentileList(reqsummary.totaltimes, markers)
 percentiles.insert(0, 'Total')
 rpc_variation.append(percentiles)
 percentiles = _GetPercentileList(reqsummary.totalrpctimes, markers)
 percentiles.insert(0, 'TotalRPCTime')
 rpc_variation.append(percentiles)
 for pair in rpcsummaries:
  percentiles = _GetPercentileList(pair[1].times, markers)
  percentiles.insert(0, pair[0])
  rpc_variation.append(percentiles)
 return rpc_variation

def RPCVariation ( reqsummary , rpcsummaries ) : rpc_variation = [ ] markers = [ 0.1 , 0.25 , 0.75 , 0.9 ] percentiles = _GetPercentileList ( reqsummary . totaltimes , markers ) percentiles . insert ( 0 , 'Total' ) rpc_variation . append ( percentiles ) percentiles = _GetPercentileList ( reqsummary . totalrpctimes , markers ) percentiles . insert ( 0 , 'TotalRPCTime' ) rpc_variation . append ( percentiles ) for pair in rpcsummaries : percentiles = _GetPercentileList ( pair [ 1 ] . times , markers ) percentiles . insert ( 0 , pair [ 0 ] ) rpc_variation . append ( percentiles ) return rpc_variation
generates desired percentiles of times spent in each rpc .