wxArt2D
Public Member Functions | Protected Attributes | List of all members
a2dProfilerHistogram Class Reference

histogram profiling More...

#include <prflcnthstg.h>

Inheritance diagram for a2dProfilerHistogram:
Inheritance graph
[legend]
Collaboration diagram for a2dProfilerHistogram:
Collaboration graph
[legend]

Public Member Functions

 a2dProfilerHistogram (wxString idIn, int hstgMinIn, int hstgMaxIn)
 constructor
 
 ~a2dProfilerHistogram ()
 destructor
 
void Cnt (int hstg)
 called when pssing the code where it is placed.
 
- Public Member Functions inherited from a2dProfiler
 a2dProfiler (const wxString &idIn)
 constructor
 
 ~a2dProfiler ()
 destructor
 

Protected Attributes

int hstgMin
 
int hstgMax
 
unsigned long cntLess
 
unsigned long cntAbv
 
unsigned long * cnt
 
- Protected Attributes inherited from a2dProfiler
wxString id
 

Additional Inherited Members

- Static Public Member Functions inherited from a2dProfiler
static void OpenPrflFile ()
 opens the profiling data file, if not yet open.
 
- Static Protected Attributes inherited from a2dProfiler
static int nmbrActv
 Number of aktive PrflCnt ( the last one closes the file. )
 
static wxFFile prflFile
 

Detailed Description

histogram profiling

Passing the Cnt() will fill the histrogram with the value of some integer variable. In the end you know which value was used how often.

Zusammenfassung der Anwendungsdetails der Klasse a2dProfilerHistogram

a2dProfilerHistogram dient dazu die Verteilung bestimmter Werte zu ermitteln. Die Anwendung ist denkbar einfach. An geeigneter Stelle fügt man folgendes Makro ein:

PRFL_CNT_HSTG(HstgName,HstgWert,HstgMin,HstgMax);

HstgMin und HstgMax sind die Grenzwerte für die Aufzeichnung. HstgWert ist der aktuelle Wert. HstgName dient zur Identifikation und muß ein gültiger C-Identifier sein. Dem Identifier wird das Präfix prfl_ vorgestellt. Mit diesem Präfix muß er in der Funktion eindeutig sein. Der Identifier sollte nicht länger als 20 Zeichen sein

Die Profileinformation wird am Programmende automatisch in die Datei Profile.txt gesichert.

Profiling ist nur eingeschaltet, wenn das macro PRFL_ENBL definiert ist oder wenn die Datei PrflEnbl.h includiert wird.

siehe auch: prflTmr.h prflCnt.h prfl.h

Definition at line 68 of file prflcnthstg.h.


The documentation for this class was generated from the following files:
a2dProfilerHistogram Class Reference -- Sun Oct 12 2014 17:04:46 -- Sun Oct 12 2014 -- 1.8.5 -- wxArt2D -- . -- Main Page Reference Documentation