Implement "carryover" functionality, requested by Kinderlehrer <bitweaver@7doves...
[htmlpurifier/darkodev.git] / benchmarks / Trace.php
blob07a6628483c39733b105e1b4c644bbebeaccfc7d
1 <?php
3 ini_set('xdebug.trace_format', 1);
4 ini_set('xdebug.show_mem_delta', true);
6 if (file_exists('Trace.xt')) {
7 echo "Previous trace Trace.xt must be removed before this script can be run.";
8 exit;
11 xdebug_start_trace(dirname(__FILE__) . '/Trace');
12 require_once '../library/HTMLPurifier.auto.php';
14 $purifier = new HTMLPurifier();
16 $data = $purifier->purify(file_get_contents('samples/Lexer/4.html'));
17 xdebug_stop_trace();
19 echo "Trace finished.";
21 // vim: et sw=4 sts=4