https://gitlab.opengeosys.org/ogs/ogs.git
Revision a7ff9cf64b9da994908265f9b3a453c046f25391 authored by Thomas Fischer on 09 September 2021, 07:42:02 UTC, committed by Thomas Fischer on 20 September 2021, 07:03:02 UTC
1 parent fb1b397
Raw File
Tip revision: a7ff9cf64b9da994908265f9b3a453c046f25391 authored by Thomas Fischer on 09 September 2021, 07:42:02 UTC
[A/U/ModelPreparation] Update copyright.
Tip revision: a7ff9cf
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