Description
Right now, we are computing different sizes, but all rely on the same procedure:
https://github.com/TuxML/ProjetIrma/blob/dev/compilation/compiler.py#L256-L259
(the "raw" size of the file)
It's correct, but we miss an opportunity to gather much more information for free.
We should use size
(UNIX command)
https://elinux.org/Kernel_Size_Tuning_Guide#Measuring_the_kernel
in particular 'size vmlinux
We can also use
nm --size -r vmlinux
We can add two new columns size_vmlinux
(it will be string)
and nm_size_vmlinux
(I suspect we have to store the information in a .log file)
It should be noted that we only have to do additional measures for vmlinux
(not the compressed ones).
Some tests are needed (taking tinyconfig and some random configurations of 4.13.3 and 4.15)