# Dynatrace - Method hotspots Tools - What is the unit ?

**URL:** <https://community.dynatrace.com/t/dynatrace-method-hotspots-tools-what-is-the-unit/16902>\
**Category:** Open Q&A\
**Tags:** profiling-and-optimization, java\
**Created:** [November 7, 2018, 10:30am UTC](https://community.dynatrace.com/t/dynatrace-method-hotspots-tools-what-is-the-unit/16902 "2018-11-07T10:30:34Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![billy\_thach](https://avatars.discourse-cdn.com/v4/letter/b/59ef9b/32.png) [@billy\_thach](https://community.dynatrace.com/u/billy_thach)\
**Post date:** [November 7, 2018, 10:30am UTC](https://community.dynatrace.com/t/dynatrace-method-hotspots-tools-what-is-the-unit/16902/1 "2018-11-07T10:30:34Z")

</div>

Hello !

May be someone could help me : i don’t understand what is the unit used with **Method Hotspots**? I want use this tools to understand the cpu consummation as indicated but i only see contribrution and i don’t found this information in documentation ..

I join a screenshot to show metrics which i need unit information.

 ![18784-2018-11-07-11h14-11.png](https://global.discourse-cdn.com/dynatrace/original/2X/7/756803032c62e81c807967c6aa4e71770dbc7a71.png)

Thanks!

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [November 7, 2018, 10:53am UTC](https://community.dynatrace.com/t/dynatrace-method-hotspots-tools-what-is-the-unit/16902/2 "2018-11-07T10:53:59Z")

</div>

This number represents samples count. During all transactions dynatrace is sampling cpu. Amount of samples is also representation of time spend on those methods because samples are making in regular timeframes.

---

<div class="post-metadata">

**Author:** ![billy\_thach](https://avatars.discourse-cdn.com/v4/letter/b/59ef9b/32.png) [@billy\_thach](https://community.dynatrace.com/u/billy_thach)\
**Post date:** [November 7, 2018, 11:13am UTC](https://community.dynatrace.com/t/dynatrace-method-hotspots-tools-what-is-the-unit/16902/3 "2018-11-07T11:13:23Z")

</div>

Thanks Sebastian for your answer!

So sum up, if i understand your explaination : this number represent the time spent on CPU ?

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [November 7, 2018, 11:53am UTC](https://community.dynatrace.com/t/dynatrace-method-hotspots-tools-what-is-the-unit/16902/4 "2018-11-07T11:53:17Z")

</div>

Not directly, It doesn’t mean number of ms spent on CPU. It means that when CPU is sampled in 10ms steps, this amount of samples has been recorded.

---

<div class="post-metadata">

**Author:** ![vladislav\_samoy](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/vladislav_samoy/32/27470_2.png) [@vladislav\_samoy](https://community.dynatrace.com/u/vladislav_samoy)\
**Post date:** [November 7, 2018, 12:03pm UTC](https://community.dynatrace.com/t/dynatrace-method-hotspots-tools-what-is-the-unit/16902/5 "2018-11-07T12:03:33Z")

</div>

If I want to see Method Hotspots for a single purepath, does it mean Count = Method execution time or such methods exists in specified CPU samples?

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [November 7, 2018, 12:20pm UTC](https://community.dynatrace.com/t/dynatrace-method-hotspots-tools-what-is-the-unit/16902/6 "2018-11-07T12:20:55Z")

</div>

It means that this method exists in X number of samples. It also means that method with higher number of samples was present on CPU longer. But you have to understand. CPU sampling is making in 10ms time periods. This means that short execution method can be missed. This also means that dynatrace doesn’t know exactly how long execution taken (because we don’t know if first sample was in exact place of starting execution time etc).

---

<div class="post-metadata">

**Author:** ![billy\_thach](https://avatars.discourse-cdn.com/v4/letter/b/59ef9b/32.png) [@billy\_thach](https://community.dynatrace.com/u/billy_thach)\
**Post date:** [November 7, 2018, 12:30pm UTC](https://community.dynatrace.com/t/dynatrace-method-hotspots-tools-what-is-the-unit/16902/7 "2018-11-07T12:30:49Z")

</div>

Thanks for your answer Sebastian : this metric is more clear for me. The CPU sampling with 10ms time is documentated somewhere ?

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [November 7, 2018, 1:16pm UTC](https://community.dynatrace.com/t/dynatrace-method-hotspots-tools-what-is-the-unit/16902/8 "2018-11-07T13:16:21Z")

</div>

Actually this is information I use based on Appmon history. There CPU sampling from autosensor was fired in 10 ms periods. Actually I don’t see documentation for method hotspots anyware in dynatrace documentation.

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [November 7, 2018, 1:21pm UTC](https://community.dynatrace.com/t/dynatrace-method-hotspots-tools-what-is-the-unit/16902/9 "2018-11-07T13:21:04Z")

</div>

Ok my bad I’ve made mistake. When you are anylizng single pure path there you will see number which is representation of contribution of response time. So it’s not samples from cpu sampling. I think they are representing numerical representation of percentage of response time contribution.

Samples I was talking about are when you will go to whole service, and from this point of view you will try to analyze cpu consumption. Sorry for mistake 🙂

---

<div class="post-metadata">

**Author:** ![billy\_thach](https://avatars.discourse-cdn.com/v4/letter/b/59ef9b/32.png) [@billy\_thach](https://community.dynatrace.com/u/billy_thach)\
**Post date:** [November 7, 2018, 3:47pm UTC](https://community.dynatrace.com/t/dynatrace-method-hotspots-tools-what-is-the-unit/16902/10 "2018-11-07T15:47:24Z")

</div>

Thanks Sebastian! I have opened a ticket to the support, may be they can help us to clarify this point.

---

<div class="post-metadata">

**Author:** ![vladislav\_samoy](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/vladislav_samoy/32/27470_2.png) [@vladislav\_samoy](https://community.dynatrace.com/u/vladislav_samoy)\
**Post date:** [November 7, 2018, 9:35pm UTC](https://community.dynatrace.com/t/dynatrace-method-hotspots-tools-what-is-the-unit/16902/11 "2018-11-07T21:35:16Z")

</div>

Please post the feedback. I’m interesting in this topic as well
