@mdekker The Tools class was already overridden and added a custom static function for getting user country code by his/her ip. This new function is called in other modules like
Tools::getCountryByIP()
, its working fine but when turning on the profiling the error "Call to undefined function .... "