cqse/teamscale-profiler-dotnet

Allow dumping coverage while application is running

karottenreibe opened this issue · 4 comments

Before working on this issue, please consult with @karottenreibe, @agoeb and @DreierF

We need to consider

  • how this interacts with TIA
  • how the Upload Daemon is supposed to handle this coverage

Can you elaborate a little more on what the expected benefit is? What's our use case?

agoeb commented

@salsolatragus Similar to our JaCoCo agent, the use case is especially related to long-running processes, e.g. web servers. So when you run your web application in IIS, you may not want to recycle the application pool on a regular basis, just to get coverage out. Restarting a process will interrupt ongoing activities and may trigger additional shutdown or startup actions unnecessarily.

Currently, we can use the eager mode to write coverage to the file, but we always continue writing the same file and do not start a new one that we could upload separately. I guess the idea is that we can write a complete file at specified intervals (or somehow event-triggered) and then start a new one, just as if you restarted the process, but without actually doing so.

Migrated as TS-21168