def _ToJsonDrill(self):
    drill_json = dict(self.__dict__)



    drill_json['rpcsummaries'] = [(l, s.requests, s.calls,
                                   json.dumps(s, cls=_RPCSummaryEncoder))
                                  for (l, s) in self.rpcsummaries]



    drill_json['groupcounts'] = [(k, len(v), json.dumps(v))
                                 for (k, v) in self.groupcounts]
    drill_json['entitycounts'] = [(k, len(v), json.dumps(v))
                                  for (k, v) in self.entitycounts]
    return drill_json
Encodes data for drill page in JSON for UI.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/analytics/process.py/Drill._ToJsonDrill