Source code for asv.asv_profiling
# Licensed under a 3-clause BSD style license - see LICENSE.rst
[docs]
class ProfilerGui:
"""
A base class to define a Profiler GUI that is available through
the ``asv profile`` command.
"""
@classmethod
[docs]
def is_available(cls):
"""
Return `True` is the given GUI tool appears to be installed
and available.
"""
raise NotImplementedError()
@classmethod
[docs]
def open_profiler_gui(cls, profiler_file):
"""
Open the profiler GUI to display the results in the given
profiler file.
"""
raise NotImplementedError()