cqse/teamscale-profiler-dotnet

Create "is alive" file when agent has been started

Closed this issue · 1 comments

When setting up the agent, it's often unclear if the agent was started and crashed (e.g. missing permissions to write log file etc) or if it wasn't started at all (e.g. incorrect env variables). To distinguish the two cases, it would be helpful if the agent could write a file to the system temp directory on startup named "PID.agent" that contains only the date when the agent was started. PID here refers to the ID of the process that is being profiled. This file should be removed when the profiled process shuts down.

Migrated as TS-21153