Make the profiler output more legible by adding some padding to the table.

This commit is contained in:
Bharat Mediratta
2008-12-16 04:45:52 +00:00
parent 52a7607336
commit e82b08db20
2 changed files with 49 additions and 13 deletions

View File

@@ -113,21 +113,22 @@ class File_Structure_Test extends Unit_Test_Case {
class GalleryCodeFilterIterator extends FilterIterator {
public function accept() {
// Skip anything that we didn't write
// Skip anything that we didn"t write
$path_name = $this->getInnerIterator()->getPathName();
$path_name = strtr($path_name, DIRECTORY_SEPARATOR, '/');
$path_name = strtr($path_name, DIRECTORY_SEPARATOR, "/");
return !(
strpos($path_name, ".svn") ||
substr($path_name, -1, 1) == "~" ||
strpos($path_name, DOCROOT . 'test') !== false ||
strpos($path_name, DOCROOT . 'var') !== false ||
strpos($path_name, MODPATH . 'forge') !== false ||
strpos($path_name, MODPATH . 'kodoc') !== false ||
strpos($path_name, MODPATH . 'mptt') !== false ||
strpos($path_name, MODPATH . 'unit_test') !== false ||
strpos($path_name, MODPATH . 'gallery_unit_test/views/kohana_error_page.php') !== false ||
strpos($path_name, MODPATH . 'gallery_unit_test/views/kohana_unit_test.php') !== false ||
strpos($path_name, MODPATH . 'user/libraries/PasswordHash') !== false ||
strpos($path_name, SYSPATH) !== false);
strpos($path_name, "core/views/kohana_profiler.php") !== false ||
strpos($path_name, DOCROOT . "test") !== false ||
strpos($path_name, DOCROOT . "var") !== false ||
strpos($path_name, MODPATH . "forge") !== false ||
strpos($path_name, MODPATH . "gallery_unit_test/views/kohana_error_page.php") !== false ||
strpos($path_name, MODPATH . "gallery_unit_test/views/kohana_unit_test.php") !== false ||
strpos($path_name, MODPATH . "kodoc") !== false ||
strpos($path_name, MODPATH . "mptt") !== false ||
strpos($path_name, MODPATH . "unit_test") !== false ||
strpos($path_name, MODPATH . "user/libraries/PasswordHash") !== false ||
strpos($path_name, SYSPATH) !== false ||
substr($path_name, -1, 1) == "~");
}
}