Browse Source
util.profiler: make log line easier to understand
patch-4
SomberNight
3 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
1 changed files with
1 additions and
1 deletions
-
electrum/util.py
|
|
@ -434,7 +434,7 @@ def profiler(func): |
|
|
|
t0 = time.time() |
|
|
|
o = func(*args, **kw_args) |
|
|
|
t = time.time() - t0 |
|
|
|
_profiler_logger.debug(f"{name} {t:,.4f}") |
|
|
|
_profiler_logger.debug(f"{name} {t:,.4f} sec") |
|
|
|
return o |
|
|
|
return lambda *args, **kw_args: do_profile(args, kw_args) |
|
|
|
|
|
|
|