MCPcopy Create free account
hub / github.com/bytedance/sonic-cpp / __init__

Method __init__

scripts/tools/draw-png.py:12–21  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

10
11class Record:
12 def __init__(self, data):
13 self._isvalid = True
14 (self._category, name) = data["name"].split('/')
15 (self._encode, self._algo) = name.split('_')
16 self._cputime = data["cpu_time"]
17 self._time_unit = data["time_unit"]
18 if "label" in data:
19 self._label = data["label"]
20 else:
21 self._isvalid = False
22
23 def file(self):
24 return self._file

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected