Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

VrPerfGraph.h

Go to the documentation of this file.
00001 /* -*- Mode: c++ -*-
00002  *
00003  *  Copyright 1997 Massachusetts Institute of Technology
00004  * 
00005  *  Permission to use, copy, modify, distribute, and sell this software and its
00006  *  documentation for any purpose is hereby granted without fee, provided that
00007  *  the above copyright notice appear in all copies and that both that
00008  *  copyright notice and this permission notice appear in supporting
00009  *  documentation, and that the name of M.I.T. not be used in advertising or
00010  *  publicity pertaining to distribution of the software without specific,
00011  *  written prior permission.  M.I.T. makes no representations about the
00012  *  suitability of this software for any purpose.  It is provided "as is"
00013  *  without express or implied warranty.
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 /* PERFMON */
00046 
00047 #endif  /* _VRPERFGRAPH_H_ */

Generated on Wed Mar 23 12:30:26 2005 for GNU Radio by  doxygen 1.4.0