You are here

function perfmon_get_mysqlstatus in Performance monitor 8

Same name and namespace in other branches
  1. 7 perfmon.inc \perfmon_get_mysqlstatus()

Mysql status.

1 call to perfmon_get_mysqlstatus()
perfmon_get_mysql_performance_variables in ./perfmon.module
Describes mysql performance variables.

File

./perfmon.module, line 336
Stand-alone perfmon test system.

Code

function perfmon_get_mysqlstatus() {
  $mysqlstatus = \Drupal::database()
    ->query("SHOW GLOBAL STATUS")
    ->fetchAll();
  $result = perfmon_convert2array($mysqlstatus);
  return $result;
}