View Issue Details

IDProjectCategoryView StatusLast Update
0001820XdebugProfilingpublic2020-10-14 15:02
Reportervideoice Assigned Toderick  
PriorityhighSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version2.9.6 
Target Version3.0devFixed in Version3.0.0beta1 
Summary0001820: Increase time tracing precision
Description

Currently, the tracking results are inaccurate, because:
A) the spent time is output in us
B) it is calculated as diff between time since epoch stored as double - see https://github.com/xdebug/xdebug/blob/b88e0f1f1ae26ae2b2b886297fbb19dd8146b9bb/src/lib/usefulstuff.c#L146

A) I propose to change the output time unit to ns
B) I propose to to update the function above to return time since first time was quried thus increasing the total resolution (double has resolution of about 16 digits, but since epoch ~1576800000 seconds (50 years) already elapsed, which equals to no better than 500ns resolution currently)

TagsNo tags attached.
Operating System
PHP Version7.4.0-7.4.4

Activities

derick

2020-07-31 08:07

administrator   ~0005437

Fixed through https://github.com/xdebug/xdebug/pull/611 — Thanks!

Issue History

Date Modified Username Field Change
2020-07-13 13:23 videoice New Issue
2020-07-14 12:53 derick Status new => confirmed
2020-07-14 12:53 derick Target Version => 3.0dev
2020-07-31 08:07 derick Assigned To => derick
2020-07-31 08:07 derick Status confirmed => closed
2020-07-31 08:07 derick Resolution open => fixed
2020-07-31 08:07 derick Fixed in Version => 3.0dev
2020-07-31 08:07 derick Note Added: 0005437
2020-10-14 15:02 derick Fixed in Version 3.0dev => 3.0.0beta1