SoDaRadio-5.0.3-master:8901fb5
ProcInfo_test.cxx
Go to the documentation of this file.
1 #include <boost/format.hpp>
2 #include "ProcInfo.hxx"
3 #include <string>
4 #include <iostream>
5 #include <unistd.h>
6 int main()
7 {
8  kb1vc::ProcInfo pi("proc_info_test.dat", "test_proc");
9 
10  int * intp;
11 
12  for(int i = 0; i < 10; i++) {
13  pi.reportInfo(i > 0);
14  pi.printInfo(std::cerr);
15  intp = new int[(i + 1) * 4096 * 64];
16 
17  intp[i] = i * i;
18  pi.printInfo(std::cerr);
19  sleep(1);
20  }
21 }
int main()
void printInfo(std::ostream &out)
Definition: ProcInfo.cxx:113
A simple base class to provide debug messaging from any derived class.
Definition: ProcInfo.hxx:41
void reportInfo(bool only_if_changed=false)
Definition: ProcInfo.hxx:60