Vladimír Vondruš
cec3c21c30
DebugTools: port FrameProfiler away from std::string.
...
One of the last remaining leftovers.
3 years ago
Vladimír Vondruš
a0a2cafa81
DebugTools: avoid accidental OOB access in FrameProfiler internals.
...
The memory wasn't accessed in that case so everything is fine, but this
started tripping up the new assertions in ArrayView element access.
Fixed by moving (and thus duplicating) the access to where it is
actually needed.
Also removed the outdated comment -- there's no _currentData anymore
anywhere, not sure what was that meant to be.
3 years ago
Vladimír Vondruš
21fbe38c52
DebugTools: avoid excessive repetition in FrameProfilerGL internals.
...
StaticArray is a thing, use it! This also makes it easier to fiddle with
the delay.
4 years ago
Vladimír Vondruš
3b2ad338e2
Port from Utility::formatString() to Utility::format() where possible.
...
There's still many cases where the formatted string is compared to a
std::stringstream, there it doesn't make sense to switch.
4 years ago
Vladimír Vondruš
822fa0d644
Updated copyright year.
4 years ago
Vladimír Vondruš
d42281ab7f
DebugTools: account for underflow in FrameProfilerGL primitive clip ratio.
...
The test added in the previous commit now passes.
5 years ago
Vladimír Vondruš
845dee36a7
DebugTools: assert that we don't overflow the counter in FrameProfiler.
...
For example when the profiled value is something really crazy, like a
negative value stored in an unsigned type. Before it tripped up on
another assert much later, this now makes the problem being caught much
earlier.
5 years ago
Vladimír Vondruš
a90e67edaa
DebugTools: rename GLFrameProfiler to FrameProfilerGL.
...
This makes more sense regarding autocompletion and grouping of common
things together when sorted alphabetically. Sorry it didn't occur
sooner to me.
5 years ago
Vladimír Vondruš
ec19c25e46
Adapt to Corrade changes.
5 years ago
Vladimír Vondruš
3d136503d8
Updated copyright year.
5 years ago
Vladimír Vondruš
e837000175
DebugTools: this comment doesn't make sense anymore.
...
Probably a leftover from a refactoring during the initial
implementation. The whole loop is just an assert, so don't compile it
when assertions are disabled.
5 years ago
Vladimír Vondruš
19e0e96d74
Updated copyright year.
6 years ago
Vladimír Vondruš
cee4840b86
DebugTools: fix build on libc++ 10.
6 years ago
Vladimír Vondruš
62fa2007e6
DebugTools: add raw data access to FrameProfiler.
...
This took three hours to implement. Wonderful, isn't it.
6 years ago
Vladimír Vondruš
d471a7bebd
DebugTools: remove redundant internal state in FrameProfiler.
...
Imagine spending 3 hours on recursive off-by-one and overflow errors.
Wonderful.
6 years ago
Vladimír Vondruš
be9a782272
DebugTools: rename function/test to match the use better.
6 years ago
Vladimír Vondruš
6c7e798d86
DebugTools: moving average over a year worth of frames isn't useful.
...
That would generate 32 GB of data. I think the technology isn't ready
for this yet, so I think capping the frame count (and everything else)
at 32 bits is enough.
6 years ago
Vladimír Vondruš
a3912c7f7f
DebugTools: make FrameProfiler compile w/o TARGET_GL enabled.
6 years ago
Vladimír Vondruš
c986f5f99b
DebugTools: make GLFrameProfiler::Values storeable in Configuration.
...
I want to use these in command-line arguments.
6 years ago
Vladimír Vondruš
820b9b94a1
DebugTools: initial implementation of a new frame profiler.
...
Replaces the old & extremely useless Profiler. Doesn't have everything I
want yet (missing stddev and fancier GPU queries), that'll come later.
6 years ago