XSLTProcessor
PHP Manual

XSLTProcessor::setProfiling

(PHP >= 5.3.0)

XSLTProcessor::setProfiling・ラ・愠ユ・。・、・�ホスミホマ・ユ・。・、・�゚ト熙ケ、�

タ篶タ

bool XSLTProcessor::setProfiling ( string $filename )

・ケ・ソ・、・�キ。シ・ネス靉�サ�、ホ・ラ・愠ユ・。・、・�ミホマ、ケ、�ユ・。・、・�゚ト熙キ、゙、ケ。」

・ム・鬣癸シ・ソ

filename

・ラ・愠ユ・。・、・�ミホマ、ケ、�ユ・。・、・�リ、ホ・ム・ケ。」

ハヨ、�ヘ

タョクキ、ソセ�遉ヒ TRUE 、「シコヌヤ、キ、ソセ�遉ヒ FALSE 、ヨ、キ、゙、ケ。」

ホ�

ホ�1 ・ラ・愠ユ・。・、・�ミホマ、ホホ�

<?php
// XML ・ス。シ・ケ、ノ、゚ケ�、゚、゙、ケ
$xml = new DOMDocument;
$xml->load('collection.xml');

$xsl = new DOMDocument;
$xsl->load('collection.xsl');

// ハムエケエ�゚ト熙キ、゙、ケ
$proc = new XSLTProcessor;
$proc->setProfiling('profiling.txt');
$proc->importStyleSheet($xsl); // xsl ・�シ・�「・ソ・テ・チ、キ、゙、ケ

echo trim($proc->transformToDoc($xml)->firstChild->wholeText);
?>

セ螟ホ・ウ。シ・ノ、マ。「・ユ・。・、・�ホス靉�サ�、ヒシ。、ホ、隍ヲ、ハセミホマ、キ、゙、ケ。」

number               match                name      mode  Calls Tot 100us Avg

    0                   cd                                    2      3      1
    1           collection                                    1      1      1

                         Total                                3      4


XSLTProcessor
PHP Manual