wincachegrind icon indicating copy to clipboard operation
wincachegrind copied to clipboard

Inaccurate measurements of time (under some/all conditions?)

Open ceefour opened this issue 8 years ago • 6 comments

From Ephraim Rubenstein [email protected] :

I downloaded 3 Cachegrind viewers today.

  1. WebCacheGrind 1.1.0.16
  2. WebGrind and
  3. QCacheGring

WebCacheGrind is showing measurements approx 1/10 of the other 2

WebCacheGrind Zend\MVC\Application->init 49ms WebGrind 492ms and QCacheGrind 492 253 (microsecs)

This does not make sense .

Can you advise?

TIA

Efffy

ceefour avatar Oct 09 '15 06:10 ceefour

Same here. Version 1.0.0.14 (last one on Sourceforge) reports 9731 ms and current 1.1 973ms on the same .out file. A xdebug Profile is also ~ 9 Sec.

bbak avatar Oct 19 '15 11:10 bbak

I can confirm, 1.10.16 shows 14ms, while 1.0.0.14 shows 142ms.

1.0.0.14 above image, 1.10.16 below cachegrind

augmenter avatar Dec 09 '15 08:12 augmenter

Same here

FractalizeR avatar Mar 10 '16 15:03 FractalizeR

I don't know when or if there'll be a fix. Feel free to use an older version at https://github.com/ceefour/wincachegrind/releases

ceefour avatar Mar 17 '16 18:03 ceefour

I can confirm the problem with the latest version. All times are 1/10 of the times in the cachegrind files. You can easily test it with just sleep(1) in a php file. Funny enough, the problem is well kown since at least 8 years. See the issues at Sourceforge: https://sourceforge.net/p/wincachegrind/bugs/2/ Merijn Bosma said there, that he has fixed the issue in release 10.0.0.14. So someone has "fixed" it back. It's even possible to work with that issue, but how hard could it be to add a multiplier of 10 to the times? Just an idea.

FuryBart avatar Apr 20 '16 07:04 FuryBart