This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-txt > tlog && (/<path_to_script>/processCoverage.sh <path_to_gcno_files> "*/<name_of_Qt_project_to_test>/src/*" <target_path_for_testcoverage_report> && <browser_executable> <target_path_for_testcoverage_report>/index.html) || (test -f <path_to_UTM>UnitTestMonitor && UnitTestMonitor) & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-txt > tlog && (/home/robert/bin/processCoverage.sh ../../work/libRowloPersistenceTest "*/libRowloPersistence/src/*" ../../testcoverage/libRowloPersistence && /usr/bin/opera ../../testcoverage/libRowloPersistence/index.html) || (test -f ~/bin/UnitTestMonitor && UnitTestMonitor) & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <QCoreApplication> | |
#include <QDateTime> | |
#include <QList> | |
#include <QObject> | |
#include <QTimer> | |
#include <QDebug> | |
QList<QObject*> buildObjectList() | |
{ | |
qint64 size = 10000000; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
building list w/o reserve took 1422 ms | |
building list w/ reserve took 1263 ms | |
reversing list stack overflow took 185 ms | |
reversing list stack overflow with max took 159 ms | |
reversing list stack overflow with max and size took 133 ms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
QList<QObject*> buildObjectListWithReserve() | |
{ | |
qint64 size = 10000000; | |
QList<QObject*> objectList; | |
objectList.reserve(size); | |
for (int i = 0; i < size; i++) | |
{ | |
objectList << new QTimer(); | |
} | |
return objectList; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for(int k=0, s=list.size(), max=(s/2); k<max; k++) list.swap(k,s-(1+k)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for(int k = 0, max = (list.size()/2); k < max; k++) list.swap(k,list.size()-(1+k)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for(int k = 0; k < (list.size()/2); k++) list.swap(k,list.size()-(1+k)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
QList<QObject*> buildObjectList() | |
{ | |
qint64 size = 10000000; | |
QList<QObject*> objectList; | |
for (int i = 0; i < size; i++) | |
{ | |
objectList << new QTimer(); | |
} | |
return objectList; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
/usr/bin/leapd & | |
/usr/bin/LeapControlPanel & |
NewerOlder