This command prints a summary of the dynamically allocated memory to the standard output. This is useful for understanding better the size of your model. More...
#include <model.h>
Public Member Functions | |
CommandPlanSize () | |
void | execute () |
string | getDescription () const |
void | undo () |
bool | undoable () const |
Static Public Member Functions | |
static PyObject * | executePython (PyObject *self, PyObject *args) |
This command prints a summary of the dynamically allocated memory to the standard output. This is useful for understanding better the size of your model.
The numbers reported by this function won't match the memory size as reported by the operating system, since the dynamically allocated memory is only a part of the total memory used by a program.
Definition at line 3923 of file model.h.
void frepple::CommandPlanSize::execute | ( | ) | [virtual] |
This method is used to actually execute the action.
A couple of notes on how this method should be implemented by the subclasses:
Implements frepple::utils::Command.
Definition at line 420 of file model/library.cpp.
static PyObject* frepple::CommandPlanSize::executePython | ( | PyObject * | self, | |
PyObject * | args | |||
) | [inline, static] |
string frepple::CommandPlanSize::getDescription | ( | ) | const [inline, virtual] |
Reimplemented from frepple::utils::Command.
void frepple::CommandPlanSize::undo | ( | ) | [inline, virtual] |
This method is undoing the state change of the execute() method.
Reversing the action is not possible for all commands. Command subclasses should override the undo() and undoable() method in case they are reversible.
A couple of notes on how this method should be implemented by the subclasses:
Reimplemented from frepple::utils::Command.
bool frepple::CommandPlanSize::undoable | ( | ) | const [inline, virtual] |
Returns true if the execution of this command can be undone.
Reimplemented from frepple::utils::Command.