mercurial/lsprof.py
changeset 43503 313e3a279828
parent 43108 dc6d866b8cb8
child 43506 9f70512ae2cf
equal deleted inserted replaced
43502:c093cc6e6c99 43503:313e3a279828
    29     """XXX docstring"""
    29     """XXX docstring"""
    30 
    30 
    31     def __init__(self, data):
    31     def __init__(self, data):
    32         self.data = data
    32         self.data = data
    33 
    33 
    34     def sort(self, crit=r"inlinetime"):
    34     def sort(self, crit="inlinetime"):
    35         """XXX docstring"""
    35         """XXX docstring"""
    36         # profiler_entries isn't defined when running under PyPy.
    36         # profiler_entries isn't defined when running under PyPy.
    37         if profiler_entry:
    37         if profiler_entry:
    38             if crit not in profiler_entry.__dict__:
    38             if crit not in profiler_entry.__dict__:
    39                 raise ValueError(b"Can't sort by %s" % crit)
    39                 raise ValueError(b"Can't sort by %s" % crit)