DEFINE_HSEQUENCE(QANCollection_HSequencePerf,QANCollection_SequencePerf)
IMPLEMENT_HSEQUENCE(QANCollection_HSequencePerf)
+static void printAllMeters (Draw_Interpretor& theDI)
+{
+ char buffer[25600];
+ perf_sprint_all_meters (buffer, 25600 - 1, 1);
+ theDI << buffer;
+}
+
// ===================== Test perform of Array1 type ==========================
-static void CompArray1 (const Standard_Integer theRep,
+static void CompArray1 (Draw_Interpretor& theDI,
+ const Standard_Integer theRep,
const Standard_Integer theSize)
{
Standard_Integer i,j;
////////////////////////////////aTOper.Stop();
PERF_STOP_METER("TCollection_Array1 operator=")
}
- PERF_PRINT_ALL
+ printAllMeters(theDI);
}
// ===================== Test perform of Array2 type ==========================
-static void CompArray2 (const Standard_Integer theRep,
+static void CompArray2 (Draw_Interpretor& theDI,
+ const Standard_Integer theRep,
const Standard_Integer theSize)
{
Standard_Integer i,j,k;
////////////////////////////////aTOper.Stop();
PERF_STOP_METER("TCollection_Array2 operator=")
}
- PERF_PRINT_ALL
+ printAllMeters(theDI);
}
// ===================== Test perform of List type ==========================
-static void CompList (const Standard_Integer theRep,
+static void CompList (Draw_Interpretor& theDI,
+ const Standard_Integer theRep,
const Standard_Integer theSize)
{
Standard_Integer i,j;
////////////////////////////////aTClea.Stop();
PERF_STOP_METER("TCollection_List clearing")
}
- PERF_PRINT_ALL
+ printAllMeters(theDI);
}
// ===================== Test perform of Sequence type ==========================
-static void CompSequence (const Standard_Integer theRep,
+static void CompSequence (Draw_Interpretor& theDI,
+ const Standard_Integer theRep,
const Standard_Integer theSize)
{
Standard_Integer i,j;
////////////////////////////////aTClea.Stop();
PERF_STOP_METER("TCollection_Sequence clearing")
}
- PERF_PRINT_ALL
+ printAllMeters(theDI);
}
// ===================== Test perform of Map type ==========================
-static void CompMap (const Standard_Integer theRep,
+static void CompMap (Draw_Interpretor& theDI,
+ const Standard_Integer theRep,
const Standard_Integer theSize)
{
Standard_Integer i,j;
////////////////////////////////aTClea.Stop();
PERF_STOP_METER("TCollection_Map clearing")
}
- PERF_PRINT_ALL
+ printAllMeters(theDI);
}
// ===================== Test perform of DataMap type ==========================
-static void CompDataMap (const Standard_Integer theRep,
+static void CompDataMap (Draw_Interpretor& theDI,
+ const Standard_Integer theRep,
const Standard_Integer theSize)
{
Standard_Integer i,j;
////////////////////////////////aTClea.Stop();
PERF_STOP_METER("TCollection_DataMap clearing")
}
- PERF_PRINT_ALL
+ printAllMeters(theDI);
}
// ===================== Test perform of DoubleMap type ==========================
-static void CompDoubleMap (const Standard_Integer theRep,
+static void CompDoubleMap (Draw_Interpretor& theDI,
+ const Standard_Integer theRep,
const Standard_Integer theSize)
{
Standard_Integer i,j;
////////////////////////////////aTClea.Stop();
PERF_STOP_METER("TCollection_DoubleMap clearing")
}
- PERF_PRINT_ALL
+ printAllMeters(theDI);
if (iFail1 || iFail2)
cout << "Warning : N map failed " << iFail1 << " times, T map - " <<
iFail2 << endl;
}
// ===================== Test perform of IndexedMap type ==========================
-static void CompIndexedMap (const Standard_Integer theRep,
+static void CompIndexedMap (Draw_Interpretor& theDI,
+ const Standard_Integer theRep,
const Standard_Integer theSize)
{
Standard_Integer i,j;
////////////////////////////////aTClea.Stop();
PERF_STOP_METER("TCollection_IndexedMap clearing")
}
- PERF_PRINT_ALL
+ printAllMeters(theDI);
}
// ===================== Test perform of IndexedDataMap type ==========================
-static void CompIndexedDataMap (const Standard_Integer theRep,
+static void CompIndexedDataMap (Draw_Interpretor& theDI,
+ const Standard_Integer theRep,
const Standard_Integer theSize)
{
Standard_Integer i,j;
////////////////////////////////aTClea.Stop();
PERF_STOP_METER("TCollection_IndexedDataMap clearing")
}
- PERF_PRINT_ALL
+ printAllMeters(theDI);
}
// ===================== Test perform of SparseArray type ==========================
-static void CompSparseArray (const Standard_Integer theRep, const Standard_Integer theSize)
+static void CompSparseArray (Draw_Interpretor& theDI,
+ const Standard_Integer theRep,
+ const Standard_Integer theSize)
{
Standard_Integer i,j;
for (i=0; i<theRep; i++)
}
- PERF_PRINT_ALL
+ printAllMeters(theDI);
}
//=======================================================================
if ( CheckArguments(di, argc, argv, Repeat, Size) ) {
return 1;
}
- CompArray1(Repeat,Size);
+ CompArray1 (di, Repeat, Size);
return 0;
}
if ( CheckArguments(di, argc, argv, Repeat, Size) ) {
return 1;
}
- CompArray2(Repeat,Size);
+ CompArray2 (di, Repeat, Size);
return 0;
}
if ( CheckArguments(di, argc, argv, Repeat, Size) ) {
return 1;
}
- CompList(Repeat,Size);
+ CompList (di, Repeat, Size);
return 0;
}
if ( CheckArguments(di, argc, argv, Repeat, Size) ) {
return 1;
}
- CompSequence(Repeat,Size);
+ CompSequence (di, Repeat, Size);
return 0;
}
if ( CheckArguments(di, argc, argv, Repeat, Size) ) {
return 1;
}
- CompMap(Repeat,Size);
+ CompMap (di, Repeat, Size);
return 0;
}
if ( CheckArguments(di, argc, argv, Repeat, Size) ) {
return 1;
}
- CompDataMap(Repeat,Size);
+ CompDataMap (di, Repeat, Size);
return 0;
}
if ( CheckArguments(di, argc, argv, Repeat, Size) ) {
return 1;
}
- CompDoubleMap(Repeat,Size);
+ CompDoubleMap (di, Repeat, Size);
return 0;
}
if ( CheckArguments(di, argc, argv, Repeat, Size) ) {
return 1;
}
- CompIndexedMap(Repeat,Size);
+ CompIndexedMap (di, Repeat, Size);
return 0;
}
if ( CheckArguments(di, argc, argv, Repeat, Size) ) {
return 1;
}
- CompIndexedDataMap(Repeat,Size);
+ CompIndexedDataMap (di, Repeat, Size);
return 0;
}
if ( CheckArguments(di, argc, argv, Repeat, Size) ) {
return 1;
}
- CompSparseArray(Repeat,Size);
+ CompSparseArray (di, Repeat, Size);
return 0;
}