1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Reading saved trace.

This commit is contained in:
Bartosz Taudul
2017-09-30 16:58:02 +02:00
parent f9ee2b853c
commit 06949e2f99
3 changed files with 148 additions and 3 deletions
+6 -1
View File
@@ -6,6 +6,7 @@
#include <memory>
#include "../nfd/nfd.h"
#include "../../server/TracyFileRead.hpp"
#include "../../server/TracyView.hpp"
static void error_callback(int error, const char* description)
@@ -69,7 +70,11 @@ int main(int, char**)
auto res = NFD_OpenDialog( "tracy", nullptr, &fn );
if( res == NFD_OKAY )
{
auto f = std::unique_ptr<tracy::FileRead>( tracy::FileRead::Open( fn ) );
if( f )
{
view = std::make_unique<tracy::View>( *f );
}
}
}
ImGui::End();