www.mooseframework.org
VectorMemoryUsage.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
13 #include "MemoryUsageReporter.h"
14 #include "MemoryUtils.h"
15 
21 {
22 public:
24 
26 
27  virtual void timestepSetup() override;
28 
29  virtual void initialize() override {}
30  virtual void execute() override;
31  virtual void finalize() override;
32 
33 protected:
36 
39 
42 
45 
48 
51 
54 
56  const bool _report_peak_value;
60 };
virtual void timestepSetup() override
Gets called at the beginning of the timestep before this object is asked to do its job...
VectorPostprocessorValue & _col_physical_mem
physical memory usage per rank
VectorPostprocessorValue & _col_hardware_id
hardware id for the physical node the rank is located at
VectorMemoryUsage(const InputParameters &parameters)
MemoryUtils::MemUnits _mem_units
The unit prefix for the reported memory statistics (kilobyte, megabyte, etc).
This class is here to combine the VectorPostprocessor interface and the base class VectorPostprocesso...
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
static InputParameters validParams()
VectorPostprocessorValue & _col_page_faults
hard page faults per rank (Linux only), i.e. swap frequency
const bool _report_peak_value
peak values
Mix-in class for querying memory metrics used by MemoryUsage and VectorMemoryUsage.
virtual void initialize() override
Called before execute() is ever called so that data can be cleared.
Generate a table of various memory metrics indexed by MPI rank.
VectorPostprocessorValue & _col_virtual_mem
virtual memory usage per rank
std::vector< Real > VectorPostprocessorValue
Definition: MooseTypes.h:192
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual void finalize() override
Finalize.
const InputParameters & parameters() const
Get the parameters of the object.
VectorPostprocessorValue & _col_total_ram
total RAM available on the physical node the rank is located at
VectorPostprocessorValue & _col_node_utilization
RAM utilization of the physical node (i.e. what fraction of the total RAM is the simulation using) ...
virtual void execute() override
Execute method.