Nested time in jprofiler

Consider the template below:

methodA() { Print (abc); // Instruction 1 Calculate(a+b+c); // Instruction 2 Call methodB();// Instruction 3 Call methodC();// Instruction 4 Print(abcd); // Instruction 5 for(; ;) // Instruction 6 { . .. } } 

The incoming time for method A () in JProfiler shows the total time spent only by Method (). Is this integral time the sum of the processor time + I / O latency, or is it just processor time?

+4
source share
2 answers

The type of time depends on the flow state selector in the upper right corner of the call tree. If it is set to Runnable, the displayed time measures the time when the CPU was in runnable state. If it is set to All State, it includes I / O, wait, and lock operations.

+5
source

According to this page http://resources.ej-technologies.com/jprofiler/help/doc/index.html

Proper time is defined as the total time of a method minus the time of its child nodes.

0
source

Source: https://habr.com/ru/post/1491384/


All Articles