rokath / trice

🟢 super fast 🚀 and tiny 🐥 embedded device 𝘾 printf-like trace ✍ code, works also inside ⚡ interrupts ⚡ and real-time PC 💻 logging (trace ID visualization 👀)
MIT License
483 stars 45 forks source link

Add `.trice/cache` functionality #488

Open rokath opened 3 weeks ago

rokath commented 3 weeks ago

On "trice i|c file" compare file modification time with cached file_i and file_c and on equality on one of them, copy the appropriate cached file according to the trice i|c command. When file modification time is newer, the file was edited, so process it normally and update the cache. The cache is simply a .trice/cache folder in the home directory with full paths from root mapped into the cache folder.

rokath commented 1 day ago

More details in TriceCacheSpec.md.