载入中...
搜索中...
未找到
ProfilerModel.cpp
浏览该文件的文档.
26 return eve::editing::failed<void>(EditorStatus::Rejected, RuleId("editor.profiler.invalid-budgets"),
37 return eve::editing::failed<void>(EditorStatus::Rejected, RuleId("editor.profiler.invalid-frame"),
48 return eve::editing::failed<void>(EditorStatus::Rejected, RuleId("editor.profiler.invalid-zone"),
EditorProfilerModel()
Construct with default budgets and a 300-frame history.
Result< void > configure(EditorProfilerBudgets budgets)
Validate and atomically replace editor-only performance budgets.
Definition ProfilerModel.cpp:22
EditorProfilerBudgets budgets() const
Return the current editor-only budgets by value.
Definition ProfilerModel.h:102
std::vector< EditorProfilerZone > query(const EditorProfilerQuery &query) const
Query and sort copied hotspot rows from the latest frame.
Definition ProfilerModel.cpp:59
std::vector< EditorDiagnostic > diagnostics() const
Produce CPU/GPU/zone budget diagnostics for the latest frame.
Definition ProfilerModel.cpp:108
void clear()
Clear retained frames without changing configured budgets.
Definition ProfilerModel.cpp:57
Result< void > ingest(EditorProfilerFrame frame)
Append an owning completed-frame snapshot.
Definition ProfilerModel.cpp:34
std::vector< EditorProfilerModuleSummary > moduleSummary() const
Aggregate copied rows by module for the latest frame.
Definition ProfilerModel.cpp:87
Diagnostic ruleDiagnostic(eve::DiagnosticCode code, RuleId rule, DiagnosticSeverity severity, std::string message)
Build a common diagnostic carrying an open editing rule identity.
Definition EditingResult.h:25
Definition ProfilerModel.cpp:9
@ PreconditionViolation
Configurable performance budgets used only for editor diagnostics.
Definition ProfilerModel.h:66
double cpuFrameMs
Definition ProfilerModel.h:67
double zoneSelfMs
Definition ProfilerModel.h:69
double gpuFrameMs
Definition ProfilerModel.h:68
std::size_t historyFrames
Definition ProfilerModel.h:70
One owning completed-frame sample retained by the editor.
Definition ProfilerModel.h:35
double cpuFrameMs
Definition ProfilerModel.h:37
std::uint64_t sequence
Definition ProfilerModel.h:36
std::vector< EditorProfilerZone > zones
Definition ProfilerModel.h:40
double gpuFrameMs
Definition ProfilerModel.h:38
Non-persistent query applied to the latest profiler frame.
Definition ProfilerModel.h:47
One owning profiler hotspot row projected for editor presentation.
Definition ProfilerModel.h:24