Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
),
SelfTimeFrame(
self_time=0.1,
),
Frame(
identifier='calculate_metrics\x00cibuildwheel/utils.py\x007',
self_time=0.1),
SelfTimeFrame(
self_time=0.05,
),
]
)
assert frame.time() == approx(0.55)
frame = processors.merge_consecutive_self_time(frame, options={})
assert frame.time() == approx(0.55)
assert len(frame.children) == 4
assert frame.children[0].self_time == approx(0.1)
assert frame.children[1].self_time == approx(0.3)
assert isinstance(frame.children[1], SelfTimeFrame)
assert frame.children[2].self_time == approx(0.1)
assert frame.children[3].self_time == approx(0.05)
assert isinstance(frame.children[3], SelfTimeFrame)
def default_processors(self):
return [
processors.remove_importlib,
processors.merge_consecutive_self_time,
processors.aggregate_repeated_calls,
processors.group_library_frames_processor,
processors.remove_unnecessary_self_time_nodes,
processors.remove_irrelevant_nodes,
]
def default_processors(self):
return [
processors.remove_importlib,
processors.merge_consecutive_self_time,
processors.aggregate_repeated_calls,
processors.group_library_frames_processor,
processors.remove_unnecessary_self_time_nodes,
processors.remove_irrelevant_nodes,
]
def default_processors(self):
return [
processors.remove_importlib,
processors.merge_consecutive_self_time,
processors.aggregate_repeated_calls,
processors.group_library_frames_processor,
processors.remove_unnecessary_self_time_nodes,
processors.remove_irrelevant_nodes,
]