function performance_is_cli in Performance Logging and Monitoring 6.2
Same name and namespace in other branches
- 6 performance.module \performance_is_cli()
Drupal 7 backport of drupal_is_cli(). http://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/drupa...
2 calls to performance_is_cli()
- performance_shutdown in ./
performance.module - Shutdown function that collects all performance data.
- performance_update_6200 in ./
performance.install - Move summary data from old performance_summary table to new cache bin. Note that we now cache per language and separate anonymous users from logged in users! During this migration, we do BASIC separation between anonymous and logged in users based on…
File
- ./
performance.module, line 709 - Logs detailed and/or summary page generation time and memory consumption for page requests. Copyright Khalid Baheyeldin 2008 of http://2bits.com
Code
function performance_is_cli() {
return !isset($_SERVER['SERVER_SOFTWARE']) && (php_sapi_name() == 'cli' || is_numeric($_SERVER['argc']) && $_SERVER['argc'] > 0);
}