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

Preload embedded trace on emscripten.

This commit is contained in:
Bartosz Taudul
2022-10-02 00:41:08 +02:00
parent dff45f1dc1
commit 75b95233ea
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -148,6 +148,9 @@ int main( int argc, char** argv )
sprintf( title, "Tracy Profiler %i.%i.%i", tracy::Version::Major, tracy::Version::Minor, tracy::Version::Patch );
std::unique_ptr<tracy::FileRead> initFileOpen;
#ifdef __EMSCRIPTEN__
initFileOpen = std::unique_ptr<tracy::FileRead>( tracy::FileRead::Open( "embed.tracy" ) );
#endif
if( argc == 2 )
{
if( strcmp( argv[1], "--help" ) == 0 )