增加可选性能埋点并完成物性效率评估
This commit is contained in:
1 parent
4e0b9fd8cc
commit
57b459bc72
21 files changed
+2029
-179
No files matched your search
@@ -10,6 +10,7 @@ from typing import Literal
|
||||
from lxml import etree
|
||||
|
||||
from app.simulation.core.ports import PortDefinition
|
||||
from app.simulation.performance import profile_phase
|
||||
from app.simulation.registry import COMPONENT_MODEL_REGISTRY, ParameterSpec
|
||||
from app.simulation.solvers.solver import SolveIVPConfig
|
||||
from app.simulation.systems.generic import (
|
||||
@@ -191,6 +192,7 @@ class SystemXmlValidationReport:
|
||||
return result
|
||||
|
||||
|
||||
@profile_phase("simulation.xml_validation")
|
||||
def validate_system_xml_document(source: bytes | str) -> SystemXmlValidationReport:
|
||||
xml_bytes = source.encode("utf-8") if isinstance(source, str) else source
|
||||
if not xml_bytes.strip():
|
||||
|
||||
Reference in new issue
Block a user