From 30fbc3ecab3cd0bd9b15aed9dc5ae62436e7d475 Mon Sep 17 00:00:00 2001 From: David Monllao Date: Thu, 8 Sep 2016 15:32:46 +0800 Subject: [PATCH] MDL-55504 profiling: No profiling for PHPUNIT_UTIL stuff --- lib/xhprof/xhprof_moodle.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/xhprof/xhprof_moodle.php b/lib/xhprof/xhprof_moodle.php index 293ffacaad1..9a4f850d2d0 100644 --- a/lib/xhprof/xhprof_moodle.php +++ b/lib/xhprof/xhprof_moodle.php @@ -865,7 +865,7 @@ class moodle_xhprofrun implements iXHProfRuns { $DB->insert_record('profiling', $rec); - if (PHPUNIT_TEST) { + if (PHPUNIT_TEST && !PHPUNIT_UTIL) { // Calculate export variables. $tempdir = 'profiling'; make_temp_directory($tempdir);