ironic.common.profiler module¶
- ironic.common.profiler.setup(name, host='0.0.0.0')[source]¶
- Setup OSprofiler notifier and enable profiling. - Parameters:
- name – name of the service that will be profiled 
- host – hostname or host IP address that the service will be running on. By default host will be set to 0.0.0.0, but specifying host name / address usage is highly recommended. 
 
- Raises:
- TypeError – in case of invalid connection string for a notifier backend, which is set in osprofiler.initializer.init_from_conf. 
 
- ironic.common.profiler.trace_cls(name, **kwargs)[source]¶
- Wrap the OSProfiler trace_cls decorator - Wrap the OSProfiler trace_cls decorator so that it will not try to patch the class unless OSProfiler is present and enabled in the config - Parameters:
- name – The name of action. For example, wsgi, rpc, db, etc.. 
- kwargs – Any other keyword args used by profiler.trace_cls 
 
 
