Skip to content

Commit

Permalink
Merge pull request #408 from nsfisis/fix/doc-sample-code
Browse files Browse the repository at this point in the history
doc: fix a sample code
  • Loading branch information
sj-i authored Jan 17, 2024
2 parents c920889 + db9073a commit 0a96983
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/memory-profiler.md
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ register_shutdown_function(
}
$pid = getmypid();
$file_opt = '--memory-limit-error-file=' . escapeshellarg($error['file']);
$line_opt = '--memory-limit-error-line=' . escapeshellarg($error['line']);
$line_opt = '--memory-limit-error-line=' . escapeshellarg((string)$error['line']);
system("sudo reli i:m -p {$pid} --no-stop-process {$file_opt} {$line_opt} >{$pid}_memory_analyzed.json");
}
);
Expand Down

0 comments on commit 0a96983

Please sign in to comment.