Util_UsageStatistics::integer( $wpdb_calls_total ), 'calls_per_second' => Util_UsageStatistics::value_per_period_seconds( $wpdb_calls_total, $summary ) ); return $summary; } public function w3tc_usage_statistics_of_request( $storage ) { $storage->counter_add( 'wpdb_calls_total', $this->query_total ); } public function query( $q ) { $this->query_total++; return $q; } }