You can use SHOW STATISTICS requests to report information on both Optimizer statistics and QCD statistics.