Project

Profile

Help

Bug #1648

Saxon.NET only profiles functions

Added by O'Neil Delpratt almost 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Sprint/Milestone:
-
Start date:
2012-11-16
Due date:
% Done:

100%

Legacy ID:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Found in version:
Fixed in version:
9.4.0.7

Description

Bug reported by John Barstow:

After some investigation, the following two lines have been added to the
Saxon.Api.XsltCompiler constructor:

if (config.isCompileWithTracing())
info.setCodeInjector(new TimingCodeInjector());

After adding these lines and re-compiling, the profiling of XSLT transform now correctly
works. The -TP flag modifies a default CompilerInfo
instance, but the .NET code always creates a new instance, thus losing
the code injector. The solution seemed to be the most surgical fix, but
it might be more correct to clone the default instance.

History

#1 Updated by Community Admin almost 4 years ago

  • Description updated (diff)

#2 Updated by O'Neil Delpratt almost 4 years ago

Bug has now been fixed and committed to subversion.

The fixed was applied to the Xslt.cs file: In the constructor of class XsltCompiler we have changed the call of the default constructor to: this.info = new JCompilerInfo(config.getDefaultXsltCompilerInfo());.

#3 Updated by O'Neil Delpratt almost 4 years ago

  • Status changed from New to Resolved

#4 Updated by O'Neil Delpratt over 3 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100
  • Fixed in version set to 9.4.0.7

Bug closed. Fixed in Saxon maintenance release 9.4.0.7

Also available in: Atom PDF