Is there a way to measure a netcore webAPI server (Krestel) start-up time?

277 Views Asked by At

I need to document the startup/shutdown time of my self-hosted WebAPI server. This is required as there are lot of configuration file readings going on during startup. I couldn't find any way to measure this as the it somewhere happens inside this usually:

CreateHostBuilder(args).Build().Run();

Can I add any profilers, performance log within the app so as to get the required performance data? Or else, is there any other way to do it?

0

There are 0 best solutions below