It's cool to see things like interrupt.memfault.com/blog/trice (and zephyr's version) becoming common for C folks as well.
As far as I can tell, the "deferred logging revolution" seems to have all started with ' #knurling defmt tool, but there's always SOME prior art :)
Conversation
Cool! I went through a similar process. Eventually decided that adding complexity of an extra build step was not worth it so I started converting the performance sensitive statements to binary logs.
1
I do wonder though. Is this an actual parser, or a regexp hack?
No idea how the TRACE library works. defmt works by placing the interned strings into an unused linker section, and decodes it automatically when you give it an ELF file and a stream of logs.
1
Oh nice. I tried something like that for C but couldn't figure it out how to do it for const strings.
1
Show replies

