• Forums
    • Public Forums
      • Community Connect
      • Dynatrace
        • Dynatrace Open Q&A
      • Application Monitoring & UEM
        • AppMon & UEM Open Q&A
      • Network Application Monitoring
        • NAM Open Q&A
  • Home /
  • Public Forums /
  • Application Monitoring & UEM /
  • AppMon & UEM Open Q&A /
avatar image
Question by Shanmugha S. · Jun 11, 2013 at 10:25 PM · continuous delivery

Method dashlet query

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.

  • Total execution time of Method A = 1000 ms
  • Total execution time of Method B = 500 ms
  • Total execution time of Method C = 200 ms

Now, the method dashlet shows execution time as -

  • Method A = 500 (1000 - 500)
  • Method B = 300 (500 - 200)
  • Method C = 200

Is there a way to get Total time of each method instead of (time taken by a method - time taken by the child method)?

Comment

People who like this

0 Show 0
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

7 Replies

  • Sort: 
  • Most voted
  • Newest
  • Oldest
avatar image

Answer by Satish P. · Mar 23, 2015 at 09:24 PM

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. 

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Shanmugha S. · Jul 09, 2013 at 03:38 PM

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.

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Ryan C. · Jul 09, 2013 at 03:35 PM

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.

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Rick B. · Jul 09, 2013 at 03:32 PM

Hi,

Edit the System Profile for your application and go to "Measures"

Click "Create Measure" and browse Server Side Performance -> Transaction based Measures -> Methods -> Time.  Then in the right window select a method of interest.

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Shanmugha S. · Jul 09, 2013 at 03:27 PM

Could you please tell where where is -> " Method->Time Measures " on DT client?

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Shanmugha S. · Jul 09, 2013 at 03:18 PM

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 )?

Comment

People who like this

0 Show 1 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image Andreas G. ♦ · Jul 09, 2013 at 03:22 PM 0
Share

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

avatar image

Answer by Andreas G. · Jul 09, 2013 at 12:59 PM

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

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

How to get started

First steps in the forum
Read Community User Guide
Best practices of using forum

NAM 2019 SP5 is available


Check the RHEL support added in the latest NAM service pack.

Learn more

LIVE WEBINAR

"Performance Clinic - Monitoring as a Self Service with Dynatrace"


JANUARY 15, 3:00 PM GMT / 10:00 AM ET

Register here

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Test automation initial setup.

Incomplete report in Jenkins

Jenkins plugin for dynaTrace - is it available for download?

Options for REST reporting

dT & Load Runner. Less tests with dt Agent installed

Forum Tags

dotnet mobile monitoring load iis 6.5 kubernetes mainframe rest api dashboard framework 7.0 appmon 7 health monitoring adk log monitoring services auto-detection uem webserver test automation license web performance monitoring ios nam probe collector migration mq web services knowledge sharing reports window java hybris javascript appmon sensors good to know extensions search 6.3+ server documentation easytravel web dashboard kibana system profile purelytics docker splunk 6.1 process groups account 7.2 rest dynatrace saas spa guardian appmon administration production user actions postgresql upgrade oneagent measures security Dynatrace Managed transactionflow technologies diagnostics user session monitoring unique users continuous delivery sharing configuration alerting NGINX splitting business transaction client 6.3 installation database scheduler apache mobileapp RUM php dashlet azure purepath agent 7.1 appmonsaas messagebroker nodejs 6.2 android sensor performance warehouse
  • Forums
  • Public Forums
    • Community Connect
    • Dynatrace
      • Dynatrace Open Q&A
    • Application Monitoring & UEM
      • AppMon & UEM Open Q&A
    • Network Application Monitoring
      • NAM Open Q&A