hmpf, slight annoyance: my __wrap_malloc functions get mangled even though i declare them extern "C"
sigh, #1916 stolen code ..
@mozgy stolen? They had copied code and made it into a usable Arduino Library, code that is not marked with any license, and they gave accreditation to that original code. What are you seeing that I didn't?
is there a way to get the number of bytes sent over a network interface? like e.g. ifconfig ?
But you can change that line locally and use lwIP built from source.
To do that, you need to be using git version of the core, and select "Core Development Module" board from Tools menu. It will have an additional option to select lwIP variant used.
Just tried that myself, seems to be working fine. Add
to the sketch
lwip_stats.ip.xmit returns something sane, lwip_stats.etharp.xmit and lwip_stats.link.xmit do not seem to work
thank you very much. any chance that those stats could be made available in the default build? i open a can of worms, if i have to redo those changes every time i update esp8266/Arduino. :-/
IMHO performance measures are painfully missing
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