summaryrefslogtreecommitdiff
path: root/src/core/perf_stats.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2020-08-17 22:35:30 -0400
committerGravatar GitHub2020-08-17 22:35:30 -0400
commit56c6a5def85cfd3001c88d69374e3fb164272b9e (patch)
treedfdceb64cc5c6c4f80f384206a080f77d7cc40ae /src/core/perf_stats.cpp
parentMerge pull request #4537 from lioncash/tz (diff)
parentcommon/fileutil: Convert namespace to Common::FS (diff)
downloadyuzu-56c6a5def85cfd3001c88d69374e3fb164272b9e.tar.gz
yuzu-56c6a5def85cfd3001c88d69374e3fb164272b9e.tar.xz
yuzu-56c6a5def85cfd3001c88d69374e3fb164272b9e.zip
Merge pull request #4535 from lioncash/fileutil
common/fileutil: Convert namespace to Common::FS
Diffstat (limited to 'src/core/perf_stats.cpp')
-rw-r--r--src/core/perf_stats.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/perf_stats.cpp b/src/core/perf_stats.cpp
index b899ac884..b93396a80 100644
--- a/src/core/perf_stats.cpp
+++ b/src/core/perf_stats.cpp
@@ -38,11 +38,11 @@ PerfStats::~PerfStats() {
38 std::ostringstream stream; 38 std::ostringstream stream;
39 std::copy(perf_history.begin() + IgnoreFrames, perf_history.begin() + current_index, 39 std::copy(perf_history.begin() + IgnoreFrames, perf_history.begin() + current_index,
40 std::ostream_iterator<double>(stream, "\n")); 40 std::ostream_iterator<double>(stream, "\n"));
41 const std::string& path = FileUtil::GetUserPath(FileUtil::UserPath::LogDir); 41 const std::string& path = Common::FS::GetUserPath(Common::FS::UserPath::LogDir);
42 // %F Date format expanded is "%Y-%m-%d" 42 // %F Date format expanded is "%Y-%m-%d"
43 const std::string filename = 43 const std::string filename =
44 fmt::format("{}/{:%F-%H-%M}_{:016X}.csv", path, *std::localtime(&t), title_id); 44 fmt::format("{}/{:%F-%H-%M}_{:016X}.csv", path, *std::localtime(&t), title_id);
45 FileUtil::IOFile file(filename, "w"); 45 Common::FS::IOFile file(filename, "w");
46 file.WriteString(stream.str()); 46 file.WriteString(stream.str());
47} 47}
48 48