mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 07:28:10 +00:00
remove src/lib
This commit is contained in:
parent
d2781d030d
commit
552444c856
@ -2,4 +2,4 @@
|
|||||||
init-hook='sys.path.append("mocks"); sys.path.append("src/lib")'
|
init-hook='sys.path.append("mocks"); sys.path.append("src/lib")'
|
||||||
|
|
||||||
[MESSAGES CONTROL]
|
[MESSAGES CONTROL]
|
||||||
disable=C0111,C0103,W0603,W0703
|
disable=C0111,C0103,C0413,W0603,W0703
|
@ -1,31 +1,13 @@
|
|||||||
import gc
|
from trezor import config
|
||||||
import micropython
|
|
||||||
import sys
|
|
||||||
|
|
||||||
sys.path.append('lib')
|
|
||||||
|
|
||||||
from trezor import loop
|
from trezor import loop
|
||||||
from trezor import workflow
|
from trezor import workflow
|
||||||
from trezor import log
|
from trezor import log
|
||||||
|
|
||||||
|
config.init()
|
||||||
|
|
||||||
log.level = log.DEBUG
|
log.level = log.DEBUG
|
||||||
|
|
||||||
|
|
||||||
def perf_info():
|
|
||||||
prev = 0
|
|
||||||
peak = 0
|
|
||||||
sleep = loop.sleep(100000)
|
|
||||||
while True:
|
|
||||||
gc.collect()
|
|
||||||
used = gc.mem_alloc()
|
|
||||||
if used != prev:
|
|
||||||
prev = used
|
|
||||||
peak = max(peak, used)
|
|
||||||
print('peak %d, used %d' % (peak, used))
|
|
||||||
yield sleep
|
|
||||||
|
|
||||||
|
|
||||||
def run(default_workflow):
|
def run(default_workflow):
|
||||||
# loop.schedule_task(perf_info())
|
|
||||||
workflow.start_default(default_workflow)
|
workflow.start_default(default_workflow)
|
||||||
loop.run_forever()
|
loop.run_forever()
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
sys.path.append('../src')
|
sys.path.append('../src')
|
||||||
sys.path.append('../src/lib')
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from ubinascii import hexlify, unhexlify
|
from ubinascii import hexlify, unhexlify
|
||||||
|
|
||||||
|
import unittest
|
Loading…
Reference in New Issue
Block a user