Pārlūkot izejas kodu

UserspaceEmulator: Use only the base name for the profile name

Hendiadyoin1 3 gadi atpakaļ
vecāks
revīzija
045461b7cb
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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())
     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;
     OwnPtr<OutputFileStream> profile_stream;
     if (dump_profile) {
     if (dump_profile) {