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

          Activity

            People

            Assignee:
            tomotsuyuki Tomo Tsuyuki
            Reporter:
            tomotsuyuki Tomo Tsuyuki
            Peer reviewer:
            Brendan Heywood Brendan Heywood
            Integrator:
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Tester:
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Participants:
            Component watchers:
            Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              8/Mar/21

                Time Tracking

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