def afterTest(self, test):
        a_vm = psutil.virtual_memory()
        a_sru_maxrss = resource.getrusage(RUSAGE_SELF).ru_maxrss
        a_cru_maxrss = resource.getrusage(RUSAGE_CHILDREN).ru_maxrss
        children = self.proc.get_children()
        num_children = len(children)
        child_names = [child.name for child in children]
        self.children = "%d children: %s" % (num_children, ', '.join(child_names))

        self._profiled_tests.append((test.id(), self.b_vm, self.b_sru_maxrss,
            self.b_cru_maxrss, a_vm, a_sru_maxrss, a_cru_maxrss, self.children))
        debug.write("After: self maxrss=%s, tchildren maxrss=%s, %s\n" % (a_sru_maxrss, a_cru_maxrss, str(a_vm)))
        debug.write("After: %s\n" % self.children)
dataset/ETHPy150Open ooici/pyon/pyon/util/memory_plugin.py/MemProfile.afterTest/original