wxArt2D
|
to find minimum and maximum values and sum of all values encountered in some pice of code. More...
#include <prflcntmean.h>
Public Member Functions | |
a2dProfilerMean (wxString idIn) | |
void | Cnt (double val) |
![]() | |
a2dProfiler (const wxString &idIn) | |
constructor | |
~a2dProfiler () | |
destructor | |
Protected Attributes | |
int | cnt |
double | sum |
double | min |
double | max |
![]() | |
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 |
to find minimum and maximum values and sum of all values encountered in some pice of code.
Zusammenfassung der Anwendungsdetails der Klasse a2dProfilerMean
a2dProfilerMean 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 58 of file prflcntmean.h.