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

Cannot import profiling file which includes huge values

XMLWordPrintable

      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.

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

            tomotsuyuki Tomo Tsuyuki
            tomotsuyuki Tomo Tsuyuki
            Brendan Heywood Brendan Heywood
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.