1
votes

I have built a service fabric application which contains stateless and stateful services. When the user hits stateless endpoint(API), the API internally calls stateful service through proxy call and send the response.

Here, I want to check the execution time of each component so started checking profiling tools but I didn't find any good tool.

If anyone is using any tool to check CPU time and execution time of API/ service methods, Please let us know.

1
Hi, Is Peter's answer helpful to your issueHugh Lin

1 Answers

0
votes

You could enable the Application Insights integration. A full tutorial on how to setup the integration in code can be found here.

Application insights (an Azure SaaS offering) will collect performance related metrics and show what calls where made and how long they took.

If you want to profile your service manually you can use interception techniques to create your own metrics. I created a small library that makes it easier to intercept method calls, see this repo.