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:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user