Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-55292

Include tideways profiler along with xhprof for PHP7 profiling

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Ensure DEVELOPER_DEBUG is on to report all possible notices.

      • Using an existing XHProf installation
        • Turn on profiling (Site Administration > Development > Profiling)
        • View pages and confirm there is recorded profiling runs.
      • Switch to PHP7 and install the tideways extension
      • Disable all profiling extensions (Both XHProf and Tideways)
        • Ensure profiling (Site Administration > Development > Profiling) is unavailable.
        • View pages and confirm no notices or warnings displayed
      Show
      Ensure DEVELOPER_DEBUG is on to report all possible notices. Using an existing XHProf installation Turn on profiling (Site Administration > Development > Profiling) View pages and confirm there is recorded profiling runs. Switch to PHP7 and install the tideways extension https://github.com/tideways/php-profiler-extension (Installation instructions) Turn on profiling (Site Administration > Development > Profiling) View pages and confirm there is recorded profiling runs. Disable all profiling extensions (Both XHProf and Tideways) Ensure profiling (Site Administration > Development > Profiling) is unavailable. View pages and confirm no notices or warnings displayed
    • Affected Branches:
      MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_30_STABLE, MOODLE_31_STABLE
    • Pull Master Branch:

      Description

      • xhprof has not been updated for PHP7
      • uprofiler also does not work for PHP7
      • All other forks have not provided the working stability required for general profiling.

      Adding the extension capability of tideways, it works with PHP7 and PHP5.6 which are the supported Moodle 3.2 PHP versions.

      https://github.com/tideways/php-profiler-extension

      I have used this extension for a few weeks on PHP7 and it has been working very reliably.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                3 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  12/Sep/16