View Issue Details

IDProjectCategoryView StatusLast Update
0001820XdebugProfilingpublic2020-10-14 15:02
Reportervideoice Assigned To 
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!