<sc6502>
Anyway, I managed to get navit compiled with gcov to measure how much code was being run and how often.
<sc6502>
Assuming I can paste it properly, here are the results.
<Xogium>
heya sc6502 :)
<Xogium>
sorry, just had a surprising freeze lol my keyboard stopped responding, had to unplug and replug :O
<sc6502>
File 'announcement.c' Lines executed:0.00% of 18
<sc6502>
File 'atom.c' Lines executed:100.00% of 13
<sc6502>
File 'attr.c' Lines executed:42.72% of 536
<sc6502>
File 'bookmarks.c' Lines executed:6.47% of 448
<sc6502>
File 'builtin.c' Lines executed:100.00% of 6
<sc6502>
File 'cache.c' Lines executed:67.12% of 219
<sc6502>
File 'callback.c' Lines executed:56.58% of 152
<sc6502>
File 'command.c' Lines executed:0.92% of 981
<sc6502>
File 'config_.c' Lines executed:36.84% of 57
<sc6502>
File 'coord.c' Lines executed:23.85% of 218
<sc6502>
File 'country.c' Lines executed:0.00% of 76
<sc6502>
File 'data_window.c' Lines executed:0.00% of 10
<sc6502>
File 'debug.c' Lines executed:73.80% of 187
<sc6502>
File 'event.c' Lines executed:48.94% of 47
<sc6502>
File 'event_glib.c' Lines executed:50.00% of 62
<sc6502>
File 'file.c' Lines executed:26.27% of 354
<sc6502>
File 'geom.c' Lines executed:0.71% of 283
<sc6502>
File 'graphics.c' Lines executed:2.07% of 1500
<sc6502>
File 'gui.c' Lines executed:26.83% of 82
<sc6502>
File 'item.c' Lines executed:19.21% of 151
<sc6502>
File 'layout.c' Lines executed:77.66% of 367
<sc6502>
File 'linguistics.c' Lines executed:14.93% of 134
<sc6502>
File 'log.c' Lines executed:0.00% of 187
<sc6502>
File 'main.c' Lines executed:69.64% of 56
<sc6502>
File 'map.c' Lines executed:32.74% of 223
<sc6502>
File 'map.h' Lines executed:0.00% of 12
<sc6502>
File 'maps.c' Lines executed:0.00% of 39
<sc6502>
File 'mapset.c' Lines executed:27.78% of 126
<sc6502>
File 'maptype.c' Lines executed:0.00% of 14
<sc6502>
File 'menu.c' Lines executed:0.00% of 11
<sc6502>
File 'messages.c' Lines executed:39.34% of 61
<sc6502>
File 'navigation.c' Lines executed:5.41% of 1997
<sc6502>
File 'navit.c' Lines executed:20.56% of 2023
<sc6502>
File 'navit_nls.c' Lines executed:18.18% of 11
<sc6502>
File 'osd.c' Lines executed:0.00% of 256
<sc6502>
File 'param.c' Lines executed:0.00% of 30
<sc6502>
File 'phrase.c' Lines executed:0.00% of 4
<sc6502>
File 'plugin.c' Lines executed:39.24% of 79
<sc6502>
File 'plugin_def.h' Lines executed:60.00% of 10
<sc6502>
File 'popup.c' Lines executed:0.00% of 228
<sc6502>
File 'porting.c' Lines executed:100.00% of 70
<sc6502>
File 'profile.c' Lines executed:100.00% of 22
<sc6502>
File 'profile_option.c' Lines executed:0.00% of 11
<sc6502>
File 'projection.c' Lines executed:0.00% of 44
<sc6502>
File 'roadprofile.c' Lines executed:42.86% of 49
<sc6502>
File 'route.c' Lines executed:14.21% of 2006
<sc6502>
File 'script.c' Lines executed:0.00% of 43
<sc6502>
File 'search.c' Lines executed:0.34% of 587
<sc6502>
File 'search_houseno_interpol.c' Lines executed:0.00% of 127
<sc6502>
File 'speech.c' Lines executed:29.27% of 41
<sc6502>
File 'start_real.c' Lines executed:51.33% of 113
<sc6502>
File 'sunriset.c' Lines executed:0.00% of 73
<sc6502>
File 'track.c' Lines executed:54.10% of 597
<sc6502>
File 'transform.c' Lines executed:22.75% of 765
<sc6502>
File 'util.c' Lines executed:11.76% of 187
<sc6502>
File 'vehicle.c' Lines executed:19.72% of 360
<sc6502>
File 'vehicleprofile.c' Lines executed:75.63% of 197
<sc6502>
File 'xmlconfig.c' Lines executed:84.32% of 708
<sc6502>
File 'start.c' Lines executed:100.00% of 2
<sc6502>
File 'fib-1.1/fib.c' Lines executed:0.00% of 297
<sc6502>
File 'graphics/ssd1306/graphics_init_animation.cpp' Lines executed:81.25% of 64
<sc6502>
File 'graphics/ssd1306/graphics_ssd1306.cpp' Lines executed:66.20% of 213
<sc6502>
File 'graphics/ssd1306/graphics_init_animation.h' Lines executed:0.00% of 6
<sc6502>
File 'gui/speedsaver/gui_speedsaver.c' Lines executed:100.00% of 18
<sc6502>
File 'map/binfile/binfile.c' Lines executed:25.56% of 1620
<sc6502>
File 'vehicle/gpsd/vehicle_gpsd.c' Lines executed:61.30% of 230
<sc6502>
So for each file, the xx% of y represents the percentage of the lines executed, out of y lines in the file.
<sc6502>
As you can see, there are a lot of low numbers, so there seems scope for yet another pruning session :)
<sc6502>
Hi Xogium :)
<Xogium>
yep I saw that. Lot of 0% executed
<Xogium>
that is very nice
<Xogium>
how are you doing ?
<sc6502>
Not too bad thanks, and you?
<Xogium>
not bad either… Trying to get espeak to run better on the mcu… it just isn't very glad to run with 512 kb of sram
<Xogium>
will need some serious refactoring to havethe dictironaries and stuff loaded straight from flash, not in ram…
<Xogium>
er, have dictionary
<Xogium>
I also want to make a talking watch for the blind
<Xogium>
I'm freaking sick of this stupid junk I payed 140 euros for that isn't even built in a good quality enough to not have a massive drift of 8 minutes forward in a few weeks
<Xogium>
the visual clock on the watch is correct, but if you press the button to get the time sopken its always 8 minutes later
<Xogium>
its like, god, frankly if the only accurate aspect of the watch is visual then don't even claim its a watch for the blind
<sc6502>
Weird, that would mean there are two unsynchronised clocks.
<Xogium>
yep
<Xogium>
the watch uses 2 different batteries
<sc6502>
Sounds like a complete mess on the design front.
<Xogium>
I'm betting the rtc they used for the audio clock is low quality, or the crystal is… or the battery. Something is definitely wrong
<sc6502>
Where does it get display time from, is it getting a time signal over the air somehow?
<Xogium>
they probably took genuine watch parts for the visual portion, but the audio completely sucks
<Xogium>
nah its your typical watch that you adjust manually
<Xogium>
but the visual clock and audio clock are completely separate in terms of configuration, a blind person can't even control the visual one
peterm6881 has joined #Speedsaver
<peterm6881>
hi guys , I can confirm Xogium's modified defconfig and BR 2021.02.8 work without any apparent issues, and that I'm building on Lubuntu 20.04
<peterm6881>
Xogium, given there is a new LTS version of Buildroot, can we update the kernel
<peterm6881>
we're currently on 5.15.2, latest stable is 5.15.9