function _perfmon_performance_tests in Performance monitor 8
Same name and namespace in other branches
- 7 perfmon.inc \_perfmon_performance_tests()
Core Perfmon checks.
2 calls to _perfmon_performance_tests()
- perfmon_get_testlist in ./
perfmon.module - Get core performance tests.
- perfmon_run in ./
perfmon.module - Public function for running Perfmon tests and returning results.
File
- ./
perfmon.module, line 77 - Stand-alone perfmon test system.
Code
function _perfmon_performance_tests() {
$tests = array();
$tests['config'] = array(
'bold' => TRUE,
'title' => t('Performance score'),
'callback' => 'perfmon_test_server_configuration',
'description' => t('Drupal installation files and directories (except required) are not writable by the server.'),
);
$tests['cpu'] = array(
'title' => t('CPU (ops per second)'),
'callback' => 'perfmon_test_cpu',
'description' => t('Untrusted users are not allowed to input dangerous HTML tags.'),
);
$tests['files'] = array(
'title' => t('Files operations (ops per second)'),
'callback' => 'perfmon_test_filesop',
'description' => t('Dangerous tags were not found in any submitted content (fields).'),
);
$tests['db_read'] = array(
'title' => t('DB read operations (ops per second)'),
'callback' => 'perfmon_test_db_read',
'description' => t('Error reporting set to log only.'),
);
$tests['db_write'] = array(
'title' => t('DB write operations (ops per second)'),
'callback' => 'perfmon_test_db_write',
'description' => t('Private files directory is outside the web server root.'),
);
$tests['db_update'] = array(
'title' => t('DB update operations (ops per second)'),
'callback' => 'perfmon_test_db_update',
'description' => t('Only safe extensions are allowed for uploaded files and images.'),
);
return $tests;
}