5 ms·
I wrote up a little hack a while ago to work around a limitation in gcov: https://github.com/Photonios/fgcov https://github.com/Photonios/fgcov It also uses `L
by photonios 9y ago
I wrote up a little hack a while ago to work around a limitation in gcov: https://github.com/Photonios/fgcov https://github.com/Photonios/fgcov
It also uses `LD_PRELOAD` to overwrite a function in gcov and hash a filename to prevent exceeding a limit. Even more interesting, it comes with a stand-alone binary. The shared library is copied into the binary and when the binary runs, it extracts the shared library and runs the real gcov and injects the shared library using `LD_PRELOAD`.
I had fun :)