Skip to content

Commit

Permalink
MDL-55921 profiling: Enable util script to be profiled.
Browse files Browse the repository at this point in the history
Enable util scripts to be profiled again and ensure
that non-util script runs that don't include version.php
are also able to provide some output.

See David's commit for how export ensures version is used.
  • Loading branch information
mr-russ committed Sep 14, 2016
1 parent 0344082 commit ff3b8f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/xhprof/xhprof_moodle.php
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,7 @@ public function save_run($xhprof_data, $type, $run_id = null) {

$DB->insert_record('profiling', $rec);

if (PHPUNIT_TEST && !PHPUNIT_UTIL) {
if (PHPUNIT_TEST) {
// Calculate export variables.
$tempdir = 'profiling';
make_temp_directory($tempdir);
Expand Down

0 comments on commit ff3b8f6

Please sign in to comment.