class_docstr: Memory resident set size (RSS) in MB.
  
  RSS is the portion of memory occupied by a process that is held in main memory (RAM).
class_docstr_tok: ["Memory","resident","set","size","(","RSS",")","in","MB",".","RSS","is","the","portion","of","memory","occupied","by","a","process","that","is","held","in","main","memory","(","RAM",")","."]
code: def sample(self) -> None:
      if self.process is None:
          self.process = psutil.Process(self.pid)
  
      self.samples.append(self.process.memory_info().rss / 1024 / 1024)
  
imports: import threading
  from collections import deque
  from typing import TYPE_CHECKING, List, Optional
  from .aggregators import aggregate_mean
  from .asset_registry import asset_registry
  from .interfaces import Interface, Metric, MetricsMonitor
label_desc: Use image node_id 2 for calling the ProcessMemoryRSS obj's underlying member method code with example usage: obj.sample() without return types