def METHOD_NAME(self, withChildren=False, withTerminatedChildren=False):
    """
    Returns the percentage of cpu used by the process
    """
    METHOD_NAME = self.process.cpu_times().system
    childrenSystem = 0
    oldChildrenSystem = 0
    if withChildren:  # active children
        for child in self.process.children(recursive=True):
            childrenSystem += child.cpu_times().system
        gLogger.debug("CPU user (process, children)", f"({METHOD_NAME:.1f}s, {childrenSystem:.1f}s)")
    if withTerminatedChildren:  # all terminated children of the root process
        for child in self.process.children(recursive=True):
            oldChildrenSystem += child.cpu_times().children_system
        gLogger.debug("CPU user (process, old children)", f"({METHOD_NAME:.1f}s, {oldChildrenSystem:.1f}s)")
    else:
        gLogger.debug("CPU user", f"{METHOD_NAME:.1f}s")
    return S_OK(METHOD_NAME + childrenSystem + oldChildrenSystem)