On 09/05/14 19:49, Maciej Sumiński wrote:
It was not used for when designing the current parser, but you may find useful include/profile.h. Have a look at common/view/view.cpp for an example of usage (search for 'prof_counter').
Thanks, that looks useful. I'm trying to write a separate test application that hooks into the PCB parsing code to be able to, say, parse a module 1,000,000 times and time it. However, as this code lives in pcbnew_kiface, which is compiled as a module, I can't link with it. The only other test programs I can see use common, so they can link. What would be the right way to get test code to use pcbnew functions like this? Add directly into pcbnew and ifdef it out, in which case it will bitrot in its ifdef prison? Or is there a way to do this over KiWay, and make it buildable in normal configurations too, without having to rebuild pcbnew do the tests? Thanks, John _______________________________________________ Mailing list: https://launchpad.net/~kicad-developers Post to : [email protected] Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp

