mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-08-06 14:16:32 +02:00
[3.1.1] Memory optimizations for ConfigSchema. Changes include:
- Elimination of ConfigDef and subclasses in favor of stdclass. Most property names stay the same - Added benchmark script for ConfigSchema - Types are internally handled as magic integers. Use HTMLPurifier_VarParser->getTypeName to convert to human readable form. HTMLPurifier_VarParser still accepts strings. - Parser in config schema only used for legacy interface git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1764 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
@@ -29,6 +29,14 @@ class HTMLPurifier_SimpleTest_Reporter extends HTMLReporter
|
||||
flush();
|
||||
}
|
||||
|
||||
public function paintFooter($test_name) {
|
||||
if (function_exists('xdebug_peak_memory_usage')) {
|
||||
$max_mem = number_format(xdebug_peak_memory_usage());
|
||||
echo "<div>Max memory usage: $max_mem bytes</div>";
|
||||
}
|
||||
parent::paintFooter($test_name);
|
||||
}
|
||||
|
||||
protected function getCss() {
|
||||
$css = parent::getCss();
|
||||
$css .= '
|
||||
|
Reference in New Issue
Block a user