aboutsummaryrefslogtreecommitdiff
path: root/tools/binman/control.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-07-06 10:36:41 -0600
committerSimon Glass <sjg@chromium.org>2021-07-21 10:27:35 -0600
commit03ebc20de3b30fca5230a4c73cf4494b0d8d8d08 (patch)
tree8c87352b4d0b4605df1765b3964aff2d2e0c42c5 /tools/binman/control.py
parentc31d0cb68c1c29f210ab44803f5e5fdcdcfa250b (diff)
binman: Add basic support for debugging performance
One of binman's attributes is that it is extremely fast, at least for a Python program. Add some simple timing around operations that might take a while, such as reading an image and compressing it. This should help to maintain the performance as new features are added. This is for debugging purposes only. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/control.py')
-rw-r--r--tools/binman/control.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/binman/control.py b/tools/binman/control.py
index b2113b6e64..dcba02ff7f 100644
--- a/tools/binman/control.py
+++ b/tools/binman/control.py
@@ -646,6 +646,9 @@ def Binman(args):
if missing:
tout.Warning("\nSome images are invalid")
+
+ # Use this to debug the time take to pack the image
+ #state.TimingShow()
finally:
tools.FinaliseOutputDir()
finally: