https://gitlab.opengeosys.org/ogs/ogs.git
- HEAD
- refs/heads/master
- refs/heads/v6.3.3
- refs/heads/v6.3.3-ci-test
- refs/heads/v6.4.0
- refs/merge-requests/3039/head
- refs/merge-requests/3039/merge
- refs/merge-requests/3095/head
- refs/merge-requests/3095/merge
- refs/merge-requests/3110/head
- refs/merge-requests/3110/merge
- refs/merge-requests/3114/head
- refs/merge-requests/3114/merge
- refs/merge-requests/3130/head
- refs/merge-requests/3130/merge
- refs/merge-requests/3135/head
- refs/merge-requests/3135/merge
- refs/merge-requests/3167/head
- refs/merge-requests/3167/merge
- refs/merge-requests/3216/head
- refs/merge-requests/3216/merge
- refs/merge-requests/3222/head
- refs/merge-requests/3222/merge
- refs/merge-requests/3223/head
- refs/merge-requests/3223/merge
- refs/merge-requests/3232/head
- refs/merge-requests/3232/merge
- refs/merge-requests/3244/head
- refs/merge-requests/3244/merge
- refs/merge-requests/3317/head
- refs/merge-requests/3317/merge
- refs/merge-requests/3380/head
- refs/merge-requests/3380/merge
- refs/merge-requests/3386/head
- refs/merge-requests/3390/head
- refs/merge-requests/3390/merge
- refs/merge-requests/3405/head
- refs/merge-requests/3405/merge
- refs/merge-requests/3409/head
- refs/merge-requests/3409/merge
- refs/merge-requests/3419/head
- refs/merge-requests/3419/merge
- refs/merge-requests/3427/head
- refs/merge-requests/3427/merge
- refs/merge-requests/3429/head
- refs/merge-requests/3429/merge
- refs/merge-requests/3433/head
- refs/merge-requests/3433/merge
- refs/merge-requests/3434/head
- refs/merge-requests/3434/merge
- refs/merge-requests/3435/head
- refs/merge-requests/3435/merge
- refs/merge-requests/3436/head
- refs/merge-requests/3436/merge
- refs/merge-requests/3437/head
- refs/merge-requests/3437/merge
- refs/merge-requests/3438/head
- refs/merge-requests/3438/merge
- refs/merge-requests/3439/head
- refs/merge-requests/3439/merge
- refs/merge-requests/3440/head
- refs/merge-requests/3440/merge
- refs/merge-requests/3441/head
- refs/merge-requests/3441/merge
- refs/merge-requests/3442/head
- refs/merge-requests/3442/merge
- refs/merge-requests/3443/head
- refs/merge-requests/3443/merge
- refs/merge-requests/3444/head
- refs/merge-requests/3444/merge
- refs/merge-requests/3445/head
- refs/merge-requests/3445/merge
- refs/merge-requests/3446/head
- refs/merge-requests/3446/merge
- refs/merge-requests/3447/head
- refs/merge-requests/3447/merge
- refs/merge-requests/3448/head
- refs/merge-requests/3448/merge
- refs/merge-requests/3449/head
- refs/merge-requests/3449/merge
- refs/merge-requests/3450/head
- refs/merge-requests/3450/merge
- refs/merge-requests/3451/head
- refs/merge-requests/3451/merge
- refs/merge-requests/3452/head
- refs/merge-requests/3452/merge
- refs/merge-requests/3453/head
- refs/merge-requests/3453/merge
- refs/merge-requests/3454/head
- refs/merge-requests/3454/merge
- refs/merge-requests/3455/head
- refs/merge-requests/3455/merge
- refs/merge-requests/3456/head
- refs/merge-requests/3456/merge
- refs/merge-requests/3457/head
- refs/merge-requests/3457/merge
- refs/merge-requests/3458/head
- refs/merge-requests/3458/merge
- refs/merge-requests/3459/head
- refs/merge-requests/3459/merge
- refs/merge-requests/3460/head
- refs/merge-requests/3460/merge
- refs/merge-requests/3461/head
- refs/merge-requests/3461/merge
- refs/merge-requests/3462/head
- refs/merge-requests/3462/merge
- refs/merge-requests/3463/head
- refs/merge-requests/3463/merge
- refs/merge-requests/3464/head
- refs/merge-requests/3464/merge
- refs/merge-requests/3465/head
- refs/merge-requests/3465/merge
- refs/merge-requests/3466/head
- refs/merge-requests/3466/merge
- refs/merge-requests/3467/head
- refs/merge-requests/3467/merge
- refs/merge-requests/3468/head
- refs/merge-requests/3468/merge
- refs/merge-requests/3469/head
- refs/merge-requests/3469/merge
- refs/merge-requests/3470/head
- refs/merge-requests/3470/merge
- refs/merge-requests/3471/head
- refs/merge-requests/3471/merge
- refs/merge-requests/3472/head
- refs/merge-requests/3472/merge
- refs/merge-requests/3473/head
- refs/merge-requests/3473/merge
- refs/merge-requests/3474/head
- refs/merge-requests/3474/merge
- refs/merge-requests/3475/head
- refs/merge-requests/3475/merge
- refs/merge-requests/3476/head
- refs/merge-requests/3476/merge
- refs/merge-requests/3477/head
- refs/merge-requests/3477/merge
- refs/merge-requests/3478/head
- refs/merge-requests/3478/merge
- refs/merge-requests/3479/head
- refs/merge-requests/3479/merge
- refs/merge-requests/3480/head
- refs/merge-requests/3480/merge
- refs/merge-requests/3481/head
- refs/merge-requests/3481/merge
- refs/merge-requests/3482/head
- refs/merge-requests/3482/merge
- refs/merge-requests/3483/head
- refs/merge-requests/3483/merge
- refs/merge-requests/3484/head
- refs/merge-requests/3484/merge
- refs/merge-requests/3485/head
- refs/merge-requests/3485/merge
- refs/merge-requests/3486/head
- refs/merge-requests/3486/merge
- refs/merge-requests/3487/head
- refs/merge-requests/3487/merge
- refs/merge-requests/3488/head
- refs/merge-requests/3488/merge
- refs/merge-requests/3489/head
- refs/merge-requests/3489/merge
- refs/merge-requests/3490/head
- refs/merge-requests/3490/merge
- refs/merge-requests/3491/head
- refs/merge-requests/3491/merge
- refs/merge-requests/3492/head
- refs/merge-requests/3492/merge
- refs/merge-requests/3493/head
- refs/merge-requests/3493/merge
- refs/merge-requests/3494/head
- refs/merge-requests/3494/merge
- refs/merge-requests/3495/head
- refs/merge-requests/3495/merge
- refs/merge-requests/3496/head
- refs/merge-requests/3496/merge
- refs/merge-requests/3497/head
- refs/merge-requests/3497/merge
- refs/merge-requests/3498/head
- refs/merge-requests/3498/merge
- refs/merge-requests/3499/head
- refs/merge-requests/3499/merge
- refs/merge-requests/3500/head
- refs/merge-requests/3500/merge
- refs/merge-requests/3501/head
- refs/merge-requests/3501/merge
- refs/merge-requests/3502/head
- refs/merge-requests/3502/merge
- refs/merge-requests/3503/head
- refs/merge-requests/3503/merge
- refs/merge-requests/3504/head
- refs/merge-requests/3504/merge
- refs/merge-requests/3505/head
- refs/merge-requests/3505/merge
- refs/merge-requests/3506/head
- refs/merge-requests/3506/merge
- refs/merge-requests/3507/head
- refs/merge-requests/3507/merge
- refs/merge-requests/3508/head
- refs/merge-requests/3508/merge
- refs/merge-requests/3509/head
- refs/merge-requests/3509/merge
- refs/merge-requests/3510/head
- refs/merge-requests/3510/merge
- refs/merge-requests/3511/head
- refs/merge-requests/3511/merge
- refs/merge-requests/3512/head
- refs/merge-requests/3512/merge
- refs/merge-requests/3513/head
- refs/merge-requests/3513/merge
- refs/merge-requests/3514/head
- refs/merge-requests/3514/merge
- refs/merge-requests/3515/head
- refs/merge-requests/3515/merge
- refs/merge-requests/3516/head
- refs/merge-requests/3516/merge
- refs/merge-requests/3517/head
- refs/merge-requests/3517/merge
- refs/merge-requests/3518/head
- refs/merge-requests/3518/merge
- refs/merge-requests/3519/head
- refs/merge-requests/3519/merge
- refs/merge-requests/3520/head
- refs/merge-requests/3520/merge
- refs/merge-requests/3521/head
- refs/merge-requests/3521/merge
- refs/merge-requests/3522/head
- refs/merge-requests/3522/merge
- refs/merge-requests/3523/head
- refs/merge-requests/3523/merge
- refs/merge-requests/3524/head
- refs/merge-requests/3524/merge
- refs/merge-requests/3525/head
- refs/merge-requests/3525/merge
- refs/merge-requests/3526/head
- refs/merge-requests/3526/merge
- refs/merge-requests/3527/head
- refs/merge-requests/3527/merge
- refs/merge-requests/3528/head
- refs/merge-requests/3528/merge
- refs/merge-requests/3529/head
- refs/merge-requests/3529/merge
- refs/merge-requests/3530/head
- refs/merge-requests/3530/merge
- refs/merge-requests/3531/head
- refs/merge-requests/3531/merge
- refs/merge-requests/3532/head
- refs/merge-requests/3532/merge
- refs/merge-requests/3533/head
- refs/merge-requests/3533/merge
- refs/merge-requests/3534/head
- refs/merge-requests/3534/merge
- refs/merge-requests/3535/head
- refs/merge-requests/3535/merge
- refs/merge-requests/3536/head
- refs/merge-requests/3536/merge
- refs/merge-requests/3537/head
- refs/merge-requests/3537/merge
- refs/merge-requests/3538/head
- refs/merge-requests/3538/merge
- refs/merge-requests/3539/head
- refs/merge-requests/3539/merge
- refs/merge-requests/3540/head
- refs/merge-requests/3540/merge
- refs/merge-requests/3541/head
- refs/merge-requests/3541/merge
- refs/merge-requests/3542/head
- refs/merge-requests/3542/merge
- refs/merge-requests/3543/head
- refs/merge-requests/3543/merge
- refs/merge-requests/3544/head
- refs/merge-requests/3544/merge
- refs/merge-requests/3545/head
- refs/merge-requests/3545/merge
- refs/merge-requests/3546/head
- refs/merge-requests/3546/merge
- refs/merge-requests/3547/head
- refs/merge-requests/3547/merge
- refs/merge-requests/3548/head
- refs/merge-requests/3548/merge
- refs/merge-requests/3549/head
- refs/merge-requests/3549/merge
- refs/merge-requests/3550/head
- refs/merge-requests/3550/merge
- refs/merge-requests/3551/head
- refs/merge-requests/3551/merge
- refs/merge-requests/3552/head
- refs/merge-requests/3552/merge
- refs/merge-requests/3553/head
- refs/merge-requests/3553/merge
- refs/merge-requests/3554/head
- refs/merge-requests/3554/merge
- refs/merge-requests/3555/head
- refs/merge-requests/3555/merge
- refs/merge-requests/3556/head
- refs/merge-requests/3556/merge
- refs/merge-requests/3557/head
- refs/merge-requests/3557/merge
- refs/merge-requests/3558/head
- refs/merge-requests/3558/merge
- refs/merge-requests/3559/head
- refs/merge-requests/3559/merge
- refs/pipelines/1632
- refs/pipelines/3384
- refs/tags/6.0.1
- refs/tags/6.0.1-prerelease
- refs/tags/6.0.2
- refs/tags/6.0.2-doi
- refs/tags/6.0.3
- refs/tags/6.0.4
- refs/tags/6.0.5
- refs/tags/6.0.6
- refs/tags/6.0.7
- refs/tags/6.1.0
- refs/tags/6.1.0-rc1
- refs/tags/6.2.0-rc1
- refs/tags/6.2.2
- refs/tags/6.3.1
- refs/tags/ode-pre-review
- refs/tags/tes-works-again
Raw File
Take a new snapshot of a software origin
If the archived software origin currently browsed is not synchronized with its upstream version (for instance when new commits have been issued), you can explicitly request Software Heritage to take a new snapshot of it.
Use the form below to proceed. Once a request has been submitted and accepted, it will be processed as soon as possible. You can then check its processing state by visiting this dedicated page.Processing "take a new snapshot" request ...
Permalinks
To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.
Tip revision: dc4bc3ba0b9de022e2962a3bb76da4f7865f2322 authored by Dmitri Naumov on 14 March 2021, 14:15:14 UTC
[MaL] MathTools; remove scalarProduct.
[MaL] MathTools; remove scalarProduct.
Tip revision: dc4bc3b
MemWatch.cpp
/**
* \file
* \author Thomas Fischer
* \date 2012-05-07
* \brief Implementation 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
*
*/
#include "MemWatch.h"
#if !defined(_WIN32) && !defined(__APPLE__) && !defined(__MINGW32__)
#include <fstream>
#include <string>
#include <sstream>
#include <sys/types.h>
#include <unistd.h>
#endif
namespace BaseLib {
MemWatch::MemWatch ()
{
updateMemUsage ();
}
unsigned MemWatch::updateMemUsage ()
{
#if !defined(_WIN32) && !defined(__APPLE__) && !defined(__MINGW32__)
std::string fname ("/proc/");
std::stringstream str_pid;
str_pid << static_cast<unsigned> (getpid());
fname += str_pid.str();
fname += "/statm";
unsigned pages;
std::ifstream in (fname.c_str(), std::ios::in);
if (!in.is_open())
{
perror( "open" );
return 1;
}
in >> pages;
_vmem_size = static_cast<unsigned long>(pages) *
static_cast<unsigned long>(getpagesize());
in.close ();
#endif
return 0;
}
unsigned long MemWatch::getVirtMemUsage ()
{
updateMemUsage ();
return _vmem_size;
}
} // end namespace BaseLib