Beispiel #1
0
 def __init__(self, port, trace_greenlets, profile):
     self.port = port
     self.profiler = ProfileCollector() if profile else None
     self.tracer = self.greenlet_tracer_cls()() if trace_greenlets else None
     super(ProfilingHTTPFrontend, self).__init__()
Beispiel #2
0
 def __init__(self, sync_service, port, trace_greenlets, profile):
     self.sync_service = sync_service
     self.port = port
     self.profiler = ProfileCollector() if profile else None
     self.tracer = GreenletTracer() if trace_greenlets else None