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