mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 19:45:20 +00:00
Savestates: Add basic statistics in log
This commit is contained in:
parent
f8ca5cdf56
commit
79465334fe
1 changed files with 5 additions and 2 deletions
|
@ -2932,6 +2932,7 @@ void Emulator::Kill(bool allow_autoexit, bool savestate, savestate_stage* save_s
|
|||
|
||||
// Save it first for maximum timing accuracy
|
||||
const u64 timestamp = get_timebased_time();
|
||||
const u64 start_time = get_system_time();
|
||||
|
||||
sys_log.notice("All threads have been stopped.");
|
||||
|
||||
|
@ -3128,7 +3129,9 @@ void Emulator::Kill(bool allow_autoexit, bool savestate, savestate_stage* save_s
|
|||
ar.seek_end();
|
||||
ar.m_file_handler->finalize(ar);
|
||||
|
||||
if (!file.commit())
|
||||
fs::stat_t file_stat{};
|
||||
|
||||
if (!file.commit() || !fs::get_stat(path, file_stat))
|
||||
{
|
||||
sys_log.error("Failed to write savestate to file! (path='%s', %s)", path, fs::g_tls_error);
|
||||
savestate = false;
|
||||
|
@ -3152,7 +3155,7 @@ void Emulator::Kill(bool allow_autoexit, bool savestate, savestate_stage* save_s
|
|||
sys_log.success("Old savestate has been removed: path='%s'", old_path2);
|
||||
}
|
||||
|
||||
sys_log.success("Saved savestate! path='%s'", path);
|
||||
sys_log.success("Saved savestate! path='%s' (file_size=0x%x, time_to_save=%gs)", path, file_stat.size, (get_system_time() - start_time) / 1000000.);
|
||||
|
||||
if (!g_cfg.savestate.suspend_emu)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue