1. Find your service registry entry in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services and add the multi-string value Environment with the following data:
Cor_Enable_Profiling=1 COR_PROFILER={C967CF3F-79BF-49a5-A10F-D5B269DB9E54} CoreCLR_Enable_Profiling=1 CORECLR_PROFILER={C967CF3F-79BF-49a5-A10F-D5B269DB9E54}
2. Create a .cmd file with a single space character inside of it and set it as a Command in the Runtime Flow Customized Run dialog, uncheck Stop monitoring when the program completes and Run monitoring:
3. Start your service from the Services snap-in:
4. See the service execution in Runtime Flow:
Copyright 2008 - 2020 Vlasov Studio (Best in class Visual Studio extensions and tools)