I am doing load testing with dynatrace and get the method averages by calling Dynatrace's rest API -getData in XML format.
I see that the method timings shown in the Method dashlet are (method time - child method time)
For example, Method A invokes MethodB and Method B invokes Method C. I have set the sensor on Method A, B and C.
Now, the method dashlet shows execution time as -
Is there a way to get Total time of each method instead of (time taken by a method - time taken by the child method)?
Answer by Satish P. ·
i ran into the same issue.. i would request a product feature though.. DT already has info on "total execution time" for a method, which includes all child methods.. if i click on a purepath, and then check the contributors, that value is clearly listed there. So ideally, i would love to have this average also show up in the "methods" dashlet.
Answer by Shanmugha S. ·
Thanks much for your responses!
I will read up and try what you suggested to see if that solves my purpose of getting the full execution time of all the methods i am interested in, in one transaction.
Answer by Ryan C. ·
What Andreas is recommending is that you create a MEASURE in dynaTrace to keep track of the execution times of these methods. Measures are used to inspect PurePaths and to store/analyze important values contained within them. In this case, you would use a MEASURE to grab the execution time of method A and store it in the performance warehouse database (repeat for methods B and C). Once the measures are in place, you will be able to analyze the performance of these methods with charts, trends, alerts, etc.
To learn more about how to create and use measures, you will find information in the documentation and recorded webinars available on this website.
Answer by Shanmugha S. ·
Could you please tell where where is -> " Method->Time Measures " on DT client?
Answer by Shanmugha S. ·
Thanks for the response.
I want to get the total execution times of all the methods i set sensors for. And for each method, i want to display trend charts for which I need the Total execution time as opposed to ( Exec time - exec time of child methods )
Also i dont want to get All the purepath contributors and filter out the methods I am interested in. Method dashlet provides an avg time of all the methods i am interested in. So that part works for me.
Is there a setting which lets the user decide, how the time in the method dashlet should be calculated? whether is should be total execution time of that method or ( total execution time - exec time of child methods )?
There is no option or setting where you can change this - BUT - I think there is a better approach for what you want.
I would create Method->Time Measures for your methods that you are instrumenting. This type of measure returns the Total Time. Having a measure also allows you to chart the response time over a longer period of time. Analysis of this data is also faster as it comes from the Performance Warehouse and must not be calculated everytime you refresh the Methods dashlet
Answer by Andreas G. ·
The Methods Dashlet doesnt provide the total exec time. It would actually result in a list of methods where your entry point method, e.g: doGet, doPost, ... will always show up with the highest execution time as these are the ones that start the PurePath and therefore have the highest Exec Time.
Why do you want the Total Exec Time? Also - have you looked at the Method and Response Time Hotspot Dashlet? These are two dashlets that provide an easy way to identify hotspots in your code. They also include methods captured through Auto Sensors and not just those from the regular sensors
JANUARY 15, 3:00 PM GMT / 10:00 AM ET