version_mon_page.cpp 530 B

12345678910111213141516
  1. #include <library/cpp/svnversion/svnversion.h>
  2. #include <library/cpp/build_info/build_info.h>
  3. #include <library/cpp/malloc/api/malloc.h>
  4. #include "version_mon_page.h"
  5. using namespace NMonitoring;
  6. void TVersionMonPage::OutputText(IOutputStream& out, NMonitoring::IMonHttpRequest&) {
  7. const char* version = GetProgramSvnVersion();
  8. out << version;
  9. if (!TString(version).EndsWith("\n"))
  10. out << "\n";
  11. out << GetBuildInfo() << "\n\n";
  12. out << "linked with malloc: " << NMalloc::MallocInfo().Name << "\n";
  13. }