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

Cannot import profiling file which includes huge values

    XMLWordPrintable

Details

    Description

      When I tried to import a profiling file which includes huge values, the system returns an error and the profiling file cannot be imported.

      An example of error message is below:

      Some problem happened importing the file "29f033cd757f128a653374e0cdeb9009.mpr"

      It looks validation error from schemaValidateSource function.

      https://github.com/moodle/moodle/blob/MOODLE_310_STABLE/lib/xhprof/xhprof_moodle.php#L826-L829

      The XML schema "int" is for 32 integer, so they needs to change to "integer" for infinite integer value.

      The file which I got the error attached.

      Attachments

        1. 29f033cd757f128a653374e0cdeb9009.mpr
          99 kB
          Tomo Tsuyuki
        2. imported_runs.png
          149 kB
          Eloy Lafuente (stronk7)

        Activity

          People

            tomotsuyuki Tomo Tsuyuki
            tomotsuyuki Tomo Tsuyuki
            Brendan Heywood Brendan Heywood
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              8/Mar/21

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 20 minutes
                20m