The panko.profiler Module

class panko.profiler.WsgiMiddleware(application, **kwargs)

Bases: object

classmethod factory(global_conf, **local_conf)
panko.profiler.trace_cls(name, **kwargs)

Wrap the OSprofiler trace_cls.

Wrap the OSprofiler trace_cls decorator so that it will not try to patch the class unless OSprofiler is present.

  • name – The name of action. For example, wsgi, rpc, db, …

  • kwargs – Any other keyword args used by profiler.trace_cls