mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
PerformanceTracker: Add ownership of m_log_name.
This commit is contained in:

committed by
Admiral H. Curtiss

parent
bc46089ab0
commit
588a72a4fc
@ -34,8 +34,8 @@ private:
|
||||
}
|
||||
|
||||
public:
|
||||
PerformanceTracker(const char* log_name = nullptr,
|
||||
const std::optional<s64> sample_window_us = {});
|
||||
PerformanceTracker(const std::optional<std::string> log_name = std::nullopt,
|
||||
const std::optional<s64> sample_window_us = std::nullopt);
|
||||
~PerformanceTracker();
|
||||
|
||||
PerformanceTracker(const PerformanceTracker&) = delete;
|
||||
@ -77,7 +77,7 @@ private: // Functions for managing dt queue
|
||||
int m_on_state_changed_handle;
|
||||
|
||||
// Name of log file and file stream
|
||||
const char* m_log_name;
|
||||
std::optional<std::string> m_log_name;
|
||||
std::ofstream m_bench_file;
|
||||
|
||||
// Last time Count() was called
|
||||
|
Reference in New Issue
Block a user