Skip to content

Commit

Permalink
feat(profiler): Update formatting of Heaptrack output file (#6601)
Browse files Browse the repository at this point in the history
Since Heaptrack performs continuous profiling of the Rust consumer, we
will want to track the profiler's output for various profiling runs that
happen. A profiling run happens for every consumer process that is
started.

Adds timestamp and ensures Heaptrack writes to a formatted file for each
profiling run. This will also make analysis easier as we will know which
file corresponds to which date and time.
  • Loading branch information
ayirr7 authored Dec 3, 2024
1 parent e07e08c commit 9b049f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker_entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ else
fi

if [ -n "${ENABLE_HEAPTRACK:-}" ]; then
set -- heaptrack "$@"
file_path="./profiler_data/profile_$(date '+%Y%m%d_%H%M%S')"
set -- heaptrack -o "${file_path}" "$@"
fi

exec "$@"

0 comments on commit 9b049f3

Please sign in to comment.