mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2025-12-22 22:20:02 +00:00
* docs: memory profile scripts * chore: typo * chore: comment * Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * chore: newline eof --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
16 lines
418 B
Bash
Executable File
16 lines
418 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Locates compiled jeprof binary (memory analysis tool) after cargo build
|
|
# Copies it to current directory from target/ build directories
|
|
|
|
JPROF_PATH=$(find . -name 'jeprof' -print -quit)
|
|
if [ -n "$JPROF_PATH" ]; then
|
|
echo "Found jeprof at $JPROF_PATH"
|
|
cp "$JPROF_PATH" .
|
|
chmod +x jeprof
|
|
echo "Copied jeprof to current directory and made it executable."
|
|
else
|
|
echo "jeprof not found"
|
|
exit 1
|
|
fi
|