00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef _VRPERFGRAPH_H_
00018 #define _VRPERFGRAPH_H_
00019
00020 #ifdef PERFMON
00021 #include <VrCycleCount.h>
00022 #define MAXGRAPHMODULES 50
00023
00024 class VrSigProc;
00025
00026 class VrPerfGraph {
00027 private:
00028
00029 VrSigProc **modules;
00030 const char *labels[MAXGRAPHMODULES];
00031 int num_modules;
00032 char *title;
00033
00034 public:
00035 VrPerfGraph() : num_modules(0), title("Performance Numbers") {};
00036 VrPerfGraph(char *t) : num_modules(0), title(t) {};
00037 void setTitle(char *t) {title=t;}
00038 void add(const char *name, VrSigProc *m);
00039 void outputGraph(double seconds);
00040 void print_stats();
00041 };
00042
00043 extern VrCycleCount *overhead;
00044
00045 #endif
00046
00047 #endif