-
Improvement
-
Resolution: Fixed
-
None
-
High
-
Import performance needs improvement; bottlenecks must be identified first, for which a PHP profiler suitable for production will be implemented.
-
Emptyshow more show less
problem
Performance of the import can be improved, bottlenecks must be identified first.
solution
Implement a PHP profiler usable in production.
In order to use the profiler https://tideways.com/profiler/xhprof-for-php7 must be installed first.
git clone https://github.com/tideways/php-xhprof-extension.git /tmp/xhprof \ && cd /tmp/xhprof \ && phpize \ && ./configure \ && make \ && make install \ && echo "extension=tideways_xhprof.so" > /usr/local/etc/php/conf.d/xhprof.ini \ && rm -rf /tmp/xhprof
or
curl -L https://github.com/tideways/php-xhprof-extension/archive/refs/heads/master.zip -o /tmp/xhprof.zip \ && unzip /tmp/xhprof.zip -d /tmp \ && cd /tmp/php-xhprof-extension-master \ && phpize \ && ./configure \ && make \ && make install \ && echo "extension=tideways_xhprof.so" > /usr/local/etc/php/conf.d/xhprof.ini \ && rm -rf /tmp/xhprof.zip /tmp/php-xhprof-extension-master
h1.usage
The workers and optional tasks for which the profiling data should be created must be defined in the installation.ini:
debug.profiling.workers.0 = editor_Plugins_MatchAnalysis_BatchWorker debug.profiling.workers.1 = editor_Plugins_MatchAnalysis_Worker debug.profiling.workers.2 = "MittagQI\\Translate5\\LanguageResource\\Pretranslation\\PivotWorker" debug.profiling.taskGuids.0 = "{bd8bf4e1-939d-44cd-8eb6-d28bfb33ddba}"
- relates to
-
TRANSLATE-4816 Implement duration logging of language resources
- Done