View Issue Details

IDProjectCategoryView StatusLast Update
0001826XdebugProfilingpublic2020-07-30 14:11
ReporterderickAssigned Toderick 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version 
Target Version3.0.0devFixed in Version3.0.0dev 
Summary0001826: Reduce profiler memory allocation and call overhead
DescriptionThe profiler currently issues many fprintf calls and relies on the OS to buffer actual writes to disk. There are also many allocations to take care of file references in profile output files.
In order to improve performance:

- Instead of calling fprintf repeatedly, use xdebug_str to build up one string to fprintf to file
- Use strings for filename/functionname references so that they don't have to be converted from integers to numbers with an sprintf variant
- No longer use xdebug_sprintf to add filename/function name references, but instead use xdebug_str_add_fmt/xdebug_str_add
TagsNo tags attached.
Operating System
PHP Version7.4.0-7.4.4

Activities

derick

2020-07-30 14:11

administrator   ~0005436

Closed through https://github.com/xdebug/xdebug/pull/616

Issue History

Date Modified Username Field Change
2020-07-29 15:42 derick New Issue
2020-07-29 15:42 derick Status new => assigned
2020-07-29 15:42 derick Assigned To => derick
2020-07-30 14:11 derick Status assigned => closed
2020-07-30 14:11 derick Resolution open => fixed
2020-07-30 14:11 derick Fixed in Version => 3.0.0dev
2020-07-30 14:11 derick Note Added: 0005436