-
Notifications
You must be signed in to change notification settings - Fork 170
Description
I run the my rust app with cargo flamegraph
in my local environment.
At that time, I could see the perf.data
as temp file in my working dir.
And when the CTRL+C
, I could also see the flamegraph.svg
Question 1: How to see the flamegraph.svg
in real time without CTRL+C
And then I needed to run the cargo flamegraph
with docker compose.
So I wrote the docker compose including cargo flamegraph
.
After running docker, all processes were running correctly, but I couldn't see the perf.data
in working dir of docker container.
Instead of generating perf.data
, I could see too long logs of docker containter (docker logs -f xxx
) including known unicode letters.
Maybe it seems like the contents of perf.data
.
I am not sure why perf.data
is not generated within docker container.
But I tried to run the command cargo flamegraph
within docker container.
At that time, perf.data
was generated within working dir of docker container.
Question 2:
Why the results of run the command as entrypoint of docker compose and as direct run within docker container are different?