Browse Source

DebugTools: doc++

pull/680/head
Vladimír Vondruš 11 months ago
parent
commit
d4387a315c
  1. 4
      src/Magnum/DebugTools/FrameProfiler.cpp
  2. 4
      src/Magnum/DebugTools/FrameProfiler.h

4
src/Magnum/DebugTools/FrameProfiler.cpp

@ -99,7 +99,7 @@ FrameProfiler& FrameProfiler::operator=(FrameProfiler&& other) noexcept {
if(measurement._state == &other) measurement._state = this;
/* And the same the other way to avoid the other instance accidentally
affecting out measurements */
affecting our measurements */
for(Measurement& measurement: other._measurements)
if(measurement._state == this) measurement._state = &other;
@ -186,7 +186,7 @@ void FrameProfiler::endFrame() {
if(++_measuredFrameCount <= _maxFrameCount)
arrayAppend(_data, NoInit, _measurements.size());
/* Wrap up measurements for this frame */
/* Wrap up measurements for this frame */
for(std::size_t i = 0; i != _measurements.size(); ++i) {
Measurement& measurement = _measurements[i];
const UnsignedInt measurementDelay = Math::max(1u, measurement._delay);

4
src/Magnum/DebugTools/FrameProfiler.h

@ -497,8 +497,8 @@ class MAGNUM_DEBUGTOOLS_EXPORT FrameProfiler::Measurement {
} _query;
void* _state;
Units _units;
/* Set to 0 to distinguish immediate measurements (first
constructor), however always used as max(_delay, 1) */
/* Set to 0 to distinguish immediate measurements (first constructor),
however always used as max(_delay, 1) */
UnsignedInt _delay;
UnsignedInt _current{};

Loading…
Cancel
Save