Where is the sensor for temperature that can be measured with the jtop command?

I’m interested in where is the position that “jtop” command measure temperature of CPU.

Is it measuring the temperature of the outside the CPU, or is it the temperature inside the CPU?

It would be even better if let me know if there are any documents that show the location of the sensor.