def test(self): #Single analyzer test only Analyzer.reset() src = OfflineReplayer() src.set_input_path(log_path) #Indirectly call analyzer via include_analyzer test_analyzer = Analyzer() test_analyzer.include_analyzer(analyzer_name, []) test_analyzer.set_source(src) # Disable all MobileInsight logs logging.getLogger('mobileinsight_logger').setLevel(logging.CRITICAL) src.run()
def set_source(self, source): """ Set the trace source. Enable the cellular signaling messages :param source: the trace source (collector). """ Analyzer.set_source(self, source) # source.enable_log("LTE_RRC_OTA_Packet") # source.enable_log("LTE_RRC_Serv_Cell_Info") # source.enable_log("LTE_RRC_MIB_Packet") # source.enable_log("LTE_RRC_MIB_Message_Log_Packet") # source.enable_log("LTE_NAS_ESM_State") # source.enable_log("LTE_NAS_ESM_OTA_Incoming_Packet") # source.enable_log("LTE_NAS_ESM_OTA_Outgoing_Packet") # source.enable_log("LTE_NAS_EMM_State") # source.enable_log("LTE_NAS_EMM_OTA_Incoming_Packet") # source.enable_log("LTE_NAS_EMM_OTA_Outgoing_Packet") # source.enable_log("LTE_PDCP_DL_Config") # source.enable_log("LTE_PDCP_UL_Config") # source.enable_log("LTE_PDCP_UL_Data_PDU") # source.enable_log("LTE_PDCP_DL_Ctrl_PDU") # source.enable_log("LTE_PDCP_UL_Ctrl_PDU") # source.enable_log("LTE_PDCP_DL_Stats") # source.enable_log("LTE_PDCP_UL_Stats") # source.enable_log("LTE_PDCP_DL_SRB_Integrity_Data_PDU") # source.enable_log("LTE_PDCP_UL_SRB_Integrity_Data_PDU") source.enable_log("LTE_PDCP_DL_Cipher_Data_PDU") source.enable_log("LTE_PDCP_UL_Cipher_Data_PDU") # source.enable_log("LTE_RLC_UL_Config_Log_Packet") # source.enable_log("LTE_RLC_DL_Config_Log_Packet") source.enable_log("LTE_RLC_UL_AM_All_PDU") source.enable_log("LTE_RLC_DL_AM_All_PDU")