diff --git a/Userland/DevTools/UserspaceEmulator/main.cpp b/Userland/DevTools/UserspaceEmulator/main.cpp index e66dc09123..8612ac0600 100644 --- a/Userland/DevTools/UserspaceEmulator/main.cpp +++ b/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 profile_stream; if (dump_profile) {