Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
2ac744f6
Commit
2ac744f6
authored
May 13, 2023
by
comfyanonymous
Browse files
Print all custom node import times.
parent
92bf1cb6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
nodes.py
nodes.py
+2
-3
No files found.
nodes.py
View file @
2ac744f6
...
...
@@ -1339,10 +1339,9 @@ def load_custom_nodes():
load_custom_node
(
module_path
)
node_import_times
.
append
((
time
.
time
()
-
time_before
,
module_path
))
slow_nodes
=
list
(
filter
(
lambda
a
:
a
[
0
]
>
1.0
,
node_import_times
))
if
len
(
slow_nodes
)
>
0
:
if
len
(
node_import_times
)
>
0
:
print
(
"
\n
Import times for custom nodes:"
)
for
n
in
sorted
(
slow_nod
es
):
for
n
in
sorted
(
node_import_tim
es
):
print
(
"{:6.1f} seconds to import:"
.
format
(
n
[
0
]),
n
[
1
])
print
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment