def METHOD_NAME(self, now_ts, last_ts):
    record = dict()
    record['dateTime'] = now_ts
    record['usUnits'] = weewx.METRIC
    record['interval'] = int((now_ts - last_ts) / 60)
    try:
        cmd = 'ps aux'
        p = Popen(cmd, shell=True, stdout=PIPE)
        o = p.communicate()[0].decode('ascii')
        for line in o.split('\n'):
            if line.find(self.process) >= 0:
                m = self.COLUMNS.search(line)
                if m:
                    record['mem_vsz'] = int(m.group(1))
                    record['mem_rss'] = int(m.group(2))
    except (ValueError, IOError, KeyError) as e:
        log.error('apcups_info failed: %s' % e)
    return record