leonardt / fault

A Python package for testing hardware (part of the magma ecosystem)
BSD 3-Clause "New" or "Revised" License
41 stars 13 forks source link

Guard inspect logic behind debug_mode flag #288

Closed leonardt closed 4 years ago

leonardt commented 4 years ago

This improves default mode performance by avoiding calls to the inspect module when issuing expect actions.

Also improves the inspect logic to only fetch the desired frame rather than using inspect.stack() to avoid constructing a list of frames for the entire stack.