• Just a note that you can do:

    require("Storage").writeJSON("setting.json", Object.assign(require("Storage").readJSON("setting.json",1),{bootDebug:1}))
    load();
    

    In the IDE, and then when you next load an app Bangle.js will print out how long each bit of bootcode/widget/clockinfo took to load, eg:

    .boot0 122 ms
    android.boot.js 31 ms
    bthome.boot.js 28 ms
    health.boot.js 10 ms
    messagegui.boot.js 1 ms
    sched.boot.js 10 ms
    welcome.boot.js 2 ms
    widlock.wid.js 2 ms
    widbat.wid.js 5 ms
    widbt.wid.js 3 ms
    widid.wid.js 3 ms
    widalarm.wid.js 6 ms
    widmessages.wid.js 39 ms
    recorder.wid.js 30 ms
    recorder.clkinfo.js 8 ms
    clkinfogpsspeed.clkinfo.js 6 ms
    clkinfocal.clkinfo.js 10 ms
    bthome.clkinfo.js 11 ms
    clkinfosec.clkinfo.js 7 ms
    stopw.clkinfo.js 12 ms
    smpltmr.clkinfo.js 32 ms
    sched.clkinfo.js 38 ms
    

    You can turn it off with:

    require("Storage").writeJSON("setting.json", Object.assign(require("Storage").readJSON("setting.json",1),{bootDebug:0}))
    

    So you can then see pretty clearly which things are slowing down the boot time of your Bangle. The app itself isn't included in that list though.

About

Avatar for Ganblejs @Ganblejs started