Selaa lähdekoodia

UserspaceEmulator: Use only the base name for the profile name

Hendiadyoin1 3 vuotta sitten
vanhempi
commit
045461b7cb
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      Userland/DevTools/UserspaceEmulator/main.cpp

+ 1 - 1
Userland/DevTools/UserspaceEmulator/main.cpp

@@ -56,7 +56,7 @@ int main(int argc, char** argv, char** env)
     }
 
     if (dump_profile && profile_dump_path.is_empty())
-        profile_dump_path = String::formatted("{}.{}.profile", executable_path, getpid());
+        profile_dump_path = String::formatted("{}.{}.profile", LexicalPath(executable_path).basename(), getpid());
 
     OwnPtr<OutputFileStream> profile_stream;
     if (dump_profile) {