aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/monlib/service/pages/version_mon_page.cpp
blob: 41e29417da768992c17841afb99aae99f969d5ce (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";
}