I have two C ++ packages A and B, where A depends on B. I would like to break this dependency by getting A to learn the minimum part of the code B, so that B can be completely discarded.
Does anyone have any tips on how I could profile package A to pinpoint classes / functions, etc. Do I need to bring with B?
EDIT: I just deleted package B and went (many) compilation cycles A, copied the files from B, updated Makefile.am accordingly. Now I am sure that I have inflated Package A with more materials than was necessary. How can I find sections of A` code that are never used in executables / libraries that come out of it?
source
share