mobile_insight.analyzer.msg_serializer module

A serializer of mobile network messages. It can be used for offline analysis and replay-based debugging.

Author: Jiayao Li

class mobile_insight.analyzer.msg_serializer.MsgSerializer

Bases: mobile_insight.analyzer.analyzer.Analyzer

An ananlyzer to save the message to disk. It can be used for replay-based debugging and offline analysis.

__dump_message(msg)

A callback function to save message to the disk

Parameters

msg (Event) – the received event (message)

set_output_path(path)

Set the file to save the messages.

Parameters

path (string) – the file path to save the messages