How to use the pyinstrument.util.deprecated_option function in pyinstrument

To help you get started, weā€™ve selected a few pyinstrument examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github joerick / pyinstrument / pyinstrument / profiler.py View on Github external
    @deprecated_option('root')
    def output(self, renderer, root=None):
        return renderer.render(self.last_session)
github joerick / pyinstrument / pyinstrument / profiler.py View on Github external
    @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
github joerick / pyinstrument / pyinstrument / profiler.py View on Github external
    @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
github joerick / pyinstrument / pyinstrument / profiler.py View on Github external
    @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)
github joerick / pyinstrument / pyinstrument / profiler.py View on Github external
    @deprecated_option('root')
    def output_html(self, root=None):
        return renderers.HTMLRenderer().render(self.last_session)