Project

Profile

Help

Bug #2730

closed

On Query command line, -TP:profile.html produces incorrect output

Added by Michael Kay almost 8 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Category:
Performance
Sprint/Milestone:
Start date:
2016-04-29
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.7, trunk
Fix Committed on Branch:
9.7, trunk
Fixed in Maintenance Release:
Platforms:

Description

When XQuery is run from the command line, using the -TP:profile.html option, the resulting HTML output is messy:

(a) The title is "Analysis of Stylesheet Execution Time" (rather than Query execution time)

(b) The entire output appears twice

(c) The subheading refers to "template or function", but for XQuery it will always be a function

(d) In the second version of the report, the "total execution time" is rubbish.

Actions #1

Updated by Debbie Lockett almost 8 years ago

  • Status changed from New to In Progress
  • Applies to branch 9.7, 9.8 added

(b) & (d): Fix in DynamicQueryContext to prevent traceListener being set twice, which resulted in the duplicated output.

(a) & (c): Changes made to TimingTraceListener so that the output differs depending on whether it is used with Transform or Query.

Patches committed to 9.7 and 9.8 dev branches.

Keeping the bug open until changes have also been made to the documentation - currently the -TP option is not documented for the Query command line.

Actions #2

Updated by Debbie Lockett almost 8 years ago

  • Status changed from In Progress to Resolved
  • Fix Committed on Branch 9.7, 9.8 added

The documentation has been updated to include details on using the -TP command line option with Query. Committed to userdoc source on 9.7 and 9.8 dev branches.

The relevant sections of the online documentation will be updated with the next maintenance release.

Actions #3

Updated by O'Neil Delpratt almost 8 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100
  • Fixed in Maintenance Release 9.7.0.5 added

Bug fix applied in the Saxon 9.7.0.5 maintenance release.

Actions #4

Updated by O'Neil Delpratt almost 8 years ago

  • Sprint/Milestone set to 9.7.0.5
Actions #5

Updated by O'Neil Delpratt almost 7 years ago

  • Applies to branch trunk added
  • Applies to branch deleted (9.8)
Actions #6

Updated by O'Neil Delpratt almost 7 years ago

  • Fix Committed on Branch trunk added
  • Fix Committed on Branch deleted (9.8)

Please register to edit this issue

Also available in: Atom PDF