You are here

function perfmon_get_mysqlvariables in Performance monitor 8

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

Mysql variables.

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

File

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

Code

function perfmon_get_mysqlvariables() {
  $mysqlvariables = \Drupal::database()
    ->query("SHOW GLOBAL VARIABLES")
    ->fetchAll();
  $result = perfmon_convert2array($mysqlvariables);
  return $result;
}