1 
2 /* Web Polygraph       http://www.web-polygraph.org/
3  * Copyright 2003-2011 The Measurement Factory
4  * Licensed under the Apache License, Version 2.0 */
5 
6 #ifndef POLYGRAPH__LOGANALYZERS_HISTOGRAMFIGURE_H
7 #define POLYGRAPH__LOGANALYZERS_HISTOGRAMFIGURE_H
8 
9 #include "loganalyzers/ReportFigure.h"
10 
11 class HistStex;
12 class Histogram;
13 class HistogramBin;
14 class PhaseInfo;
15 
16 // creates a distribution figure based on phase stats
17 class HistogramFigure: public ReportFigure {
18 	public:
19 		HistogramFigure();
20 
21 		void stats(const HistStex *aStex, const PhaseInfo *phase);
22 		void compareWith(const HistStex *stex);
23 
24 	protected:
25 		virtual int addPlotData();
26 		int dumpDataLine(const HistogramBin &bin, const Counter totCount);
27 
28 	protected:
29 		const PhaseInfo *thePhase;
30 		const HistStex *theStex;
31 		Array<const HistStex *> theComparison; // theStex and others
32 };
33 
34 #endif
35