[GPU] Use overall shorter names for xenia GPU traces

This commit is contained in:
DrChat 2017-12-17 14:52:24 -06:00
parent 81cd532ff8
commit d4338a2c3f
3 changed files with 6 additions and 5 deletions

View File

@ -372,8 +372,7 @@ uint32_t CommandProcessor::ExecutePrimaryBuffer(uint32_t read_index,
uint32_t title_id = kernel_state_->GetExecutableModule()
? kernel_state_->GetExecutableModule()->title_id()
: 0;
auto file_name =
xe::format_string(L"title_%8X_stream.xenia_gpu_trace", title_id);
auto file_name = xe::format_string(L"%8X_stream.xtr", title_id);
auto path = trace_stream_path_ + file_name;
trace_writer_.Open(path, title_id);
}
@ -675,8 +674,7 @@ bool CommandProcessor::ExecutePacketType3(RingBuffer* reader, uint32_t packet) {
} else if (trace_state_ == TraceState::kSingleFrame) {
// New trace request - we only start tracing at the beginning of a frame.
uint32_t title_id = kernel_state_->GetExecutableModule()->title_id();
auto file_name = xe::format_string(L"title_%8X_frame_%u.xenia_gpu_trace",
title_id, counter_ - 1);
auto file_name = xe::format_string(L"%8X_%u.xtr", title_id, counter_ - 1);
auto path = trace_frame_path_ + file_name;
trace_writer_.Open(path, title_id);
}

View File

@ -64,7 +64,7 @@ int TraceDump::Main(const std::vector<std::wstring>& args) {
file_picker->set_multi_selection(false);
file_picker->set_title(L"Select Trace File");
file_picker->set_extensions({
{L"Supported Files", L"*.xenia_gpu_trace"},
{L"Supported Files", L"*.xtr"},
{L"All Files (*.*)", L"*.*"},
});
if (file_picker->Show()) {

View File

@ -15,6 +15,9 @@
namespace xe {
namespace gpu {
// Trace file extension.
static const wchar_t kTraceExtension[] = L"xtr";
// Any byte changes to the files should bump this version.
// Only builds with matching versions will work.
// Other changes besides the file format may require bumps, such as