Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
)
]
),
Frame(
identifier='\x00sympy/polys/numberfields.py\x001',
self_time=0.05,
)
]
)
]
)
assert frame.self_time == 0.0
assert frame.time() == approx(0.5)
frame = processors.remove_importlib(frame, options={})
assert frame.self_time == approx(0.2) # the root gets the self_time from the importlib
assert frame.time() == approx(0.5)
assert len(frame.children) == 3
assert frame.children[0].file_path == 'sympy/polys/polyfuncs.py'
assert frame.children[1].file_path == 'sympy/polys/partfrac.py'
assert frame.children[2].file_path == 'sympy/polys/numberfields.py'
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,
]