wxArt2D
|
histogram profiling More...
#include <prflcnthstg.h>
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. | |
![]() | |
a2dProfiler (const wxString &idIn) | |
constructor | |
~a2dProfiler () | |
destructor | |
Protected Attributes | |
int | hstgMin |
int | hstgMax |
unsigned long | cntLess |
unsigned long | cntAbv |
unsigned long * | cnt |
![]() | |
wxString | id |
Additional Inherited Members | |
![]() | |
static void | OpenPrflFile () |
opens the profiling data file, if not yet open. | |
![]() | |
static int | nmbrActv |
Number of aktive PrflCnt ( the last one closes the file. ) | |
static wxFFile | prflFile |
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.