cconard96 / glpi-dev-plugin

Provides multiple tools to help core and plugin developers
GNU General Public License v2.0
5 stars 3 forks source link

Handle recursive profiler sections #26

Closed cconard96 closed 1 year ago

cconard96 commented 1 year ago

When profiling a recursive function like DBmysql::quoteName the duration for each section was being aggregated resulting in double-counting the durations. Only the top-level section should be counted in the final aggregate event as it would represent the total time spent.