equal
deleted
inserted
replaced
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) |