1
0

util.profiler: add "min_threshold" arg

This commit is contained in:
SomberNight
2023-04-26 14:49:37 +00:00
parent ee52154542
commit ad5f95cb87
3 changed files with 14 additions and 3 deletions

View File

@@ -35,6 +35,7 @@ from electrum.i18n import _
from electrum.bitcoin import is_address
from electrum.transaction import PartialTxInput, PartialTxOutput
from electrum.lnutil import LN_MAX_FUNDING_SAT, MIN_FUNDING_SAT
from electrum.util import profiler
from .util import ColorScheme, MONOSPACE_FONT, EnterButton
from .my_treeview import MyTreeView
@@ -87,6 +88,7 @@ class UTXOList(MyTreeView):
menu.addAction(_('Coin control'), lambda: self.add_selection_to_coincontrol())
return toolbar
@profiler(min_threshold=0.05)
def update(self):
# not calling maybe_defer_update() as it interferes with coincontrol status bar
utxos = self.wallet.get_utxos()