Skip to content

Commit

Permalink
Add profiling to read_ports. NFC
Browse files Browse the repository at this point in the history
  • Loading branch information
sbc100 committed Jan 28, 2024
1 parent 72c3be3 commit 4d281bd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/ports/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
from tools import utils
from tools.settings import settings

from tools.toolchain_profiler import ToolchainProfiler

ports = []

ports_by_name = {}
Expand All @@ -29,6 +31,7 @@
logger = logging.getLogger('ports')


@ToolchainProfiler.profile()
def read_ports():
expected_attrs = ['get', 'clear', 'show', 'needed']
for filename in os.listdir(ports_dir):
Expand Down

0 comments on commit 4d281bd

Please sign in to comment.