parameters: (self, heap_only: bool = False)
docstring: Returns a list of sections based on the memory manager's view of
          this task's virtual memory.
docstring_summary: Returns a list of sections based on the memory manager's view of
          this task's virtual memory.
docstring_tokens: Returns a list of sections based on the memory manager s view of this task s virtual memory .
function: def get_process_memory_sections(self, heap_only: bool = False) -> Generator[Tuple[int, int], None, None]:
          """Returns a list of sections based on the memory manager's view of
          this task's virtual memory."""
          for vma in self.mm.get_mmap_iter():
              start = int(vma.vm_start)
              end = int(vma.vm_end)
  
              if heap_only and not (start <= self.mm.brk and end >= self.mm.start_brk):
                  continue
              else:
                  # FIXME: Check if this actually needs to be printed out or not
                  vollog.info("adding vma: {:x} {:x} | {:x} {:x}".format(start, self.mm.brk, end, self.mm.start_brk))
  
              yield (start, end - start)
function_tokens: def get_process_memory_sections ( self , heap_only : bool = False ) -> Generator [ Tuple [ int , int ] , None , None ] : for vma in self . mm . get_mmap_iter ( ) : start = int ( vma . vm_start ) end = int ( vma . vm_end ) if heap_only and not ( start <= self . mm . brk and end >= self . mm . start_brk ) : continue else : # FIXME: Check if this actually needs to be printed out or not vollog . info ( "adding vma: {:x} {:x} | {:x} {:x}" . format ( start , self . mm . brk , end , self . mm . start_brk ) ) yield ( start , end - start )