aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/monlib/service/pages/version_mon_page.cpp
blob: 50e628880923811e2fab82148caf6a671b99c610 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <library/cpp/svnversion/svnversion.h>
#include <library/cpp/build_info/build_info.h>
#include <library/cpp/malloc/api/malloc.h>

#include "version_mon_page.h"

using namespace NMonitoring;

void TVersionMonPage::OutputText(IOutputStream& out, NMonitoring::IMonHttpRequest&) {
    const char* version = GetProgramSvnVersion();
    out << version;
    if (!TString(version).EndsWith("\n"))
        out << "\n";
    out << GetBuildInfo() << "\n\n"; 
    out << "linked with malloc: " << NMalloc::MallocInfo().Name << "\n";
}