Skip to content

Commit f1ff06a

Browse files
authored
Add profiling to read_ports. NFC (#21194)
See #21191
1 parent 72c3be3 commit f1ff06a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/ports/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
from tools import utils
1717
from tools.settings import settings
1818

19+
from tools.toolchain_profiler import ToolchainProfiler
20+
1921
ports = []
2022

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

3133

34+
@ToolchainProfiler.profile()
3235
def read_ports():
3336
expected_attrs = ['get', 'clear', 'show', 'needed']
3437
for filename in os.listdir(ports_dir):

0 commit comments

Comments
 (0)