class_docstr: Class for collecting resource usage info from this or child process.
class_docstr_tok: ["Class","for","collecting","resource","usage","info","from","this","or","child","process","."]
docstr: Returns an initialized ResourceMetrics proto.
  
  This function also fills in the "constant" fields of the ResourceMetrics
  proto that don't depend on the actual running commands, such as host_name.
  
  Returns:
    learning.genomics.deepvariant.ResourceMetrics proto.
docstr_tok: ["Returns","an","initialized","ResourceMetrics","proto",".","This","function","also","fills","in","the","``","constant","''","fields","of","the","ResourceMetrics","proto","that","do","n't","depend","on","the","actual","running","commands",",","such","as","host_name",".","Returns",":","learning.genomics.deepvariant.ResourceMetrics","proto","."]
code: def _initial_metrics_protobuf(self):
      """Returns an initialized ResourceMetrics proto.
  
      This function also fills in the "constant" fields of the ResourceMetrics
      proto that don't depend on the actual running commands, such as host_name.
  
      Returns:
        learning.genomics.deepvariant.ResourceMetrics proto.
      """
      return resources_pb2.ResourceMetrics(
          host_name=_get_host_name(),
          cpu_frequency_mhz=_get_cpu_frequency(),
          physical_core_count=_get_cpu_count(),
          total_memory_mb=_get_total_memory(),
      )
  
file_path: deepvariant/deepvariant/resources.py
imports: import platform
  import resource
  import time
  import psutil
  from deepvariant.protos import resources_pb2
label_desc: Use image node_id 2 for calling the ResourceMonitor obj's underlying member method code with example usage: obj._initial_metrics_protobuf() and returns: resources_pb2