fix whitespace formatting

This commit is contained in:
Andrew Meadows 2014-07-09 14:33:09 -07:00
parent f463099d16
commit 63bcee0229
2 changed files with 16 additions and 16 deletions

View file

@ -90,8 +90,8 @@ PerformanceTimer::~PerformanceTimer() {
// static // static
void PerformanceTimer::tallyAllTimerRecords() { void PerformanceTimer::tallyAllTimerRecords() {
QMap<QString, PerformanceTimerRecord>::iterator recordsItr = _records.begin(); QMap<QString, PerformanceTimerRecord>::iterator recordsItr = _records.begin();
QMap<QString, PerformanceTimerRecord>::const_iterator recordsEnd = _records.end(); QMap<QString, PerformanceTimerRecord>::const_iterator recordsEnd = _records.end();
quint64 now = usecTimestampNow(); quint64 now = usecTimestampNow();
while (recordsItr != recordsEnd) { while (recordsItr != recordsEnd) {
recordsItr.value().tallyResult(now); recordsItr.value().tallyResult(now);

View file

@ -25,13 +25,13 @@
class PerformanceWarning { class PerformanceWarning {
private: private:
quint64 _start; quint64 _start;
const char* _message; const char* _message;
bool _renderWarningsOn; bool _renderWarningsOn;
bool _alwaysDisplay; bool _alwaysDisplay;
quint64* _runningTotal; quint64* _runningTotal;
quint64* _totalCalls; quint64* _totalCalls;
static bool _suppressShortTimings; static bool _suppressShortTimings;
public: public:
PerformanceWarning(bool renderWarnings, const char* message, bool alwaysDisplay = false, PerformanceWarning(bool renderWarnings, const char* message, bool alwaysDisplay = false,
@ -62,13 +62,13 @@ public:
quint64 getCount() const { return _numTallies; } quint64 getCount() const { return _numTallies; }
private: private:
quint64 _runningTotal; quint64 _runningTotal;
quint64 _lastTotal; quint64 _lastTotal;
quint64 _numAccumulations; quint64 _numAccumulations;
quint64 _numTallies; quint64 _numTallies;
quint64 _expiry; quint64 _expiry;
SimpleMovingAverage _movingAverage; SimpleMovingAverage _movingAverage;
};
class PerformanceTimer { class PerformanceTimer {
public: public:
@ -89,10 +89,10 @@ public:
static void dumpAllTimerRecords(); static void dumpAllTimerRecords();
private: private:
quint64 _start; quint64 _start;
QString _name; QString _name;
static QString _fullName; static QString _fullName;
static QMap<QString, PerformanceTimerRecord> _records; static QMap<QString, PerformanceTimerRecord> _records;
}; };