Skip to content

Commit

Permalink
Add profiling to read_ports. NFC (#21194)
Browse files Browse the repository at this point in the history
See #21191
  • Loading branch information
sbc100 authored Jan 28, 2024
1 parent 72c3be3 commit f1ff06a
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 f1ff06a

Please sign in to comment.