mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-24 22:51:04 +00:00
Profiler: Fix variable shadowing
This commit is contained in:
parent
58180a2db0
commit
1b1f61fe4c
@ -90,10 +90,10 @@ void ProfilingManager::FinishFrame() {
|
|||||||
last_frame_end = now;
|
last_frame_end = now;
|
||||||
}
|
}
|
||||||
|
|
||||||
TimingResultsAggregator::TimingResultsAggregator(size_t window_size)
|
TimingResultsAggregator::TimingResultsAggregator(size_t _window_size)
|
||||||
: max_window_size(window_size), window_size(0) {
|
: max_window_size(_window_size), window_size(0) {
|
||||||
interframe_times.resize(window_size, Duration::zero());
|
interframe_times.resize(_window_size, Duration::zero());
|
||||||
frame_times.resize(window_size, Duration::zero());
|
frame_times.resize(_window_size, Duration::zero());
|
||||||
}
|
}
|
||||||
|
|
||||||
void TimingResultsAggregator::Clear() {
|
void TimingResultsAggregator::Clear() {
|
||||||
|
@ -84,7 +84,7 @@ private:
|
|||||||
*/
|
*/
|
||||||
class Timer {
|
class Timer {
|
||||||
public:
|
public:
|
||||||
Timer(TimingCategory& category) : category(category) {
|
Timer(TimingCategory& _category) : category(_category) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Start() {
|
void Start() {
|
||||||
|
@ -38,8 +38,8 @@ private:
|
|||||||
template <typename T>
|
template <typename T>
|
||||||
class SynchronizedRef {
|
class SynchronizedRef {
|
||||||
public:
|
public:
|
||||||
SynchronizedRef(SynchronizedWrapper<T>& wrapper) : wrapper(&wrapper) {
|
SynchronizedRef(SynchronizedWrapper<T>& _wrapper) : wrapper(&_wrapper) {
|
||||||
wrapper.mutex.lock();
|
_wrapper.mutex.lock();
|
||||||
}
|
}
|
||||||
|
|
||||||
SynchronizedRef(SynchronizedRef&) = delete;
|
SynchronizedRef(SynchronizedRef&) = delete;
|
||||||
|
Loading…
Reference in New Issue
Block a user