Added packet capture APIs and enhanced GetStatViewOnCsv to handle any of of stats