const Standard_Integer REPEAT = 100;
-void printAllMeters ()
+static void printAllMeters (Draw_Interpretor& theDI)
{
- PERF_PRINT_ALL
+ char buffer[25600];
+ perf_sprint_all_meters (buffer, 25600 - 1, 1);
+ theDI << buffer;
}
static void createArray (TColgp_Array1OfPnt& anArrPnt)
}
}
-static void checkArray (const Standard_Boolean isNewColl)
+static void checkArray (Draw_Interpretor& theDI, const Standard_Boolean isNewColl)
{
if (isNewColl) {
MyArray1 anArrPnt (1, 100000), anArrPnt1 (1, 100000);
createArray (anArrPnt);
assignArray (anArrPnt1, anArrPnt);
}
- printAllMeters ();
+ printAllMeters (theDI);
}
-static void checkSequence (const Standard_Boolean isNewColl,
+static void checkSequence (Draw_Interpretor& theDI,
+ const Standard_Boolean isNewColl,
const Standard_Boolean isIncr)
{
if (isNewColl) {
createSequence (aSeqPnt);
assignSequence (aSeqPnt1, aSeqPnt);
}
- printAllMeters ();
+ printAllMeters (theDI);
}
//=======================================================================
if (argc > 1) {
if (strcmp (argv[1], "-n") == 0) isNewColl = Standard_True;
}
- checkArray (isNewColl);
+ checkArray (di, isNewColl);
return 0;
}
isIncr = Standard_True;
}
}
- checkSequence (isNewColl, isIncr);
+ checkSequence (di, isNewColl, isIncr);
return 0;
}