def __init__(self, thread, cpu_id, ts, name, body, parser=None):
        self.thread = thread
        self.reporting_cpu_id = int(cpu_id)
        self.timestamp = numeric(ts)
        self.name = name
        self.text = body
        self.fields = {}

        if parser:
            try:
                parser(self, self.text)
            except Exception:  # pylint: disable=broad-except
                # unknown format assume user does not care or know how to
                # parse self.text
                pass
Get the contents margins for the group box.
dataset/ETHPy150Open ARM-software/workload-automation/wlauto/utils/trace_cmd.py/TraceCmdEvent.__init__--crossover with--dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/wx/wx_group_box.py/wxGroupBox.GetContentsMargins