Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
@deprecated_option('root')
def output(self, renderer, root=None):
return renderer.render(self.last_session)
@deprecated_option('use_signal')
@deprecated_option('recorder')
def __init__(self, interval=0.001, use_signal=None, recorder=None):
self.interval = interval
self.last_profile_time = 0.0
self.frame_records = []
self._start_time = None
self._start_process_time = None
self.last_session = None
@deprecated_option('recorder')
def __init__(self, interval=0.001, use_signal=None, recorder=None):
self.interval = interval
self.last_profile_time = 0.0
self.frame_records = []
self._start_time = None
self._start_process_time = None
self.last_session = None
@deprecated_option('root')
def output_text(self, root=None, unicode=False, color=False, show_all=False, timeline=False):
return renderers.ConsoleRenderer(unicode=unicode, color=color, show_all=show_all, timeline=timeline).render(self.last_session)
@deprecated_option('root')
def output_html(self, root=None):
return renderers.HTMLRenderer().render(self.last_session)