mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 03:13:09 +02:00
fix whitespace formatting
This commit is contained in:
parent
f463099d16
commit
63bcee0229
2 changed files with 16 additions and 16 deletions
|
@ -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);
|
||||||
|
|
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue