[V1] EngineCore supports profiling (#10564)

Signed-off-by: Abatom <abzhonghua@gmail.com>
This commit is contained in:
Zhonghua Deng
2024-11-22 17:16:15 -08:00
committed by GitHub
parent 28598f3939
commit d345f409b7
5 changed files with 68 additions and 9 deletions
+6
View File
@@ -68,6 +68,11 @@ class EngineCoreOutputs(msgspec.Struct,
outputs: List[EngineCoreOutput]
@dataclass
class EngineCoreProfile:
is_start: bool
class EngineCoreRequestType(enum.Enum):
"""
Request types defined as hex byte strings, so it can be sent over sockets
@@ -75,3 +80,4 @@ class EngineCoreRequestType(enum.Enum):
"""
ADD = b'\x00'
ABORT = b'\x01'
PROFILE = b'\x02'