https://gitlab.opengeosys.org/ogs/ogs.git
Revision 3d595b9b068763fe20a3c0e703c863d180c6e1d1 authored by Lars Bilke on 16 March 2021, 08:38:23 UTC, committed by Lars Bilke on 16 March 2021, 08:38:23 UTC
1 parent 353baf5
Raw File
Tip revision: 3d595b9b068763fe20a3c0e703c863d180c6e1d1 authored by Lars Bilke on 16 March 2021, 08:38:23 UTC
[cmake-format] Top-level CMakeLists.txt
Tip revision: 3d595b9
MemWatch.h
/**
 * \file
 * \author Thomas Fischer
 * \date   2012-05-07
 * \brief  Definition of the MemWatch class.
 *
 * \copyright
 * Copyright (c) 2012-2021, OpenGeoSys Community (http://www.opengeosys.org)
 *            Distributed under a Modified BSD License.
 *              See accompanying file LICENSE.txt or
 *              http://www.opengeosys.org/project/license
 *
 */

#pragma once

namespace BaseLib {

class MemWatch {
public:
    MemWatch ();
    unsigned long getVirtMemUsage ();

private:
    unsigned updateMemUsage ();
    unsigned long _vmem_size = 0;
};

}  // namespace BaseLib
back to top