XSLTProcessor::setProfiling Sets profiling output file &reftitle.description; boolXSLTProcessor::setProfiling stringfilename Sets the file to output profiling information when processing a stylesheet. &reftitle.parameters; filename Path to the file to dump profiling information. &reftitle.returnvalues; &return.success; &reftitle.examples; Example profiling output load('collection.xml'); $xsl = new DOMDocument; $xsl->load('collection.xsl'); // Configure the transformer $proc = new XSLTProcessor; $proc->setProfiling('profiling.txt'); $proc->importStyleSheet($xsl); // attach the xsl rules echo trim($proc->transformToDoc($xml)->firstChild->wholeText); ?> ]]> The above code will produce the following information in the profiling file: