Project

Profile

Help

Bug #6451

closed

The profiler feature does not work (i.e. -TP)

Added by O'Neil Delpratt 7 months ago. Updated 29 days ago.

Status:
Rejected
Priority:
Normal
Category:
Saxon-C Internals
Start date:
2024-06-12
Due date:
% Done:

0%

Estimated time:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Found in version:
12.4.2
Fixed in version:
SaxonC Languages:
SaxonC Platforms:
SaxonC Architecture:

Description

User reported that the TimingTraceListener does not work via the API. See: https://saxonica.plan.io/boards/3/topics/9668

Example code from user:

        SaxonProcessor* processor = new SaxonProcessor(false);
        processor->setConfigurationProperty("http://saxon.sf.net/feature/traceListenerClass", "net.sf.saxon.trace.TimingTraceListener");
        processor->setConfigurationProperty("http://saxon.sf.net/feature/traceListenerOutputFile", "c:\\temp\\profile.html");
        processor->setConfigurationProperty("http://saxon.sf.net/feature/timing", "1");

However I found that the -TP option works via the command-line tool in SaxonC.

The following worked for me:

./transform -xsl:../samples/data/test.xsl -s:../samples/data/cat.xml -TP:profile.html

Please register to edit this issue

Also available in: Atom PDF