with your help i can now track heap memory (with the malloc wrapper) but my cpu load measurment is very cumbersum. i count the number of yield and delay calls and estimate some cpu load from that :-(
it would also be interesting how much cpu time is spent in the core and how much in 'user space'.
or is there something like a 'idle' time (sleeping) ?
First we need to check how much RAM does enabling stats consume... Then, if the value is not huge (or if we can enable just a portion of these stats), we can make this change once we switch to GCC-built lwip as the default one.
looks promising. :)
Me No Dev
@igrr see there was a point of adding source build option not just for me :)
@me-no-dev yeah, i see the point :)
since i was building from the command line, it was never actually a trouble for me to do make -C path/to/lwip all install && ./build-sketch.py
but it is good to be able to do that from the IDE :)
what was the make option to set a define from command line?
or i could use sed to chang that particular define in lwipopts.h
thx, will try this first :)
maybe it needs some quotes around -DLWIP_STATS=1
@me-no-dev yes, thats a copy and one that do not even work on all OLEDs, I don't like when people put their names in credits for something copied and barely functional