There are some Canadian Residency Obligations that one needs to follow i.e. Permanent residents should be physically present in Canada for at least 730 days out of every five years so as to renew their status. Visa officer has no desecration to overlook this residency obligation so you may lose your Permanent Resident status if you did not meet your residency obligation.
Your days will be considered if you were Outside Canada but accompanying a spouse/common-law partner or you are a child accompanying a parent who is a Canadian Citizen or a Canadian permanent employed on a full-time basis by a Canadian enterprise or the Public Service of Canada anywhere outside Canada.