载入中...
搜索中...
未找到
eve::profiler_editing::EditorProfilerModel类 参考

Bounded owning profiler history and deterministic presentation queries. @thread Main-thread only. @reentrancy Does not invoke callbacks. @ownership Owns all retained frame and string data; it does not own the runtime profiler. 更多...

#include <ProfilerModel.h>

Public 成员函数

 EditorProfilerModel ()
 Construct with default budgets and a 300-frame history.
 
Result< void > configure (EditorProfilerBudgets budgets)
 Validate and atomically replace editor-only performance budgets.
 
Result< void > ingest (EditorProfilerFrame frame)
 Append an owning completed-frame snapshot.
 
void clear ()
 Clear retained frames without changing configured budgets.
 
EditorProfilerBudgets budgets () const
 Return the current editor-only budgets by value.
 
const std::deque< EditorProfilerFrame > & history () const
 Return the bounded owning frame history.
 
std::vector< EditorProfilerZone > query (const EditorProfilerQuery &query) const
 Query and sort copied hotspot rows from the latest frame.
 
std::vector< EditorProfilerModuleSummary > moduleSummary () const
 Aggregate copied rows by module for the latest frame.
 
std::vector< EditorDiagnostic > diagnostics () const
 Produce CPU/GPU/zone budget diagnostics for the latest frame.
 

详细描述

Bounded owning profiler history and deterministic presentation queries. @thread Main-thread only. @reentrancy Does not invoke callbacks. @ownership Owns all retained frame and string data; it does not own the runtime profiler.

在文件 ProfilerModel.h 第 79 行定义.

构造及析构函数说明

◆ EditorProfilerModel()

eve::profiler_editing::EditorProfilerModel::EditorProfilerModel ( )
default

Construct with default budgets and a 300-frame history.

成员函数说明

◆ budgets()

EditorProfilerBudgets eve::profiler_editing::EditorProfilerModel::budgets ( ) const
inline

Return the current editor-only budgets by value.

在文件 ProfilerModel.h 第 102 行定义.

被这些函数引用 configure().

◆ clear()

void eve::profiler_editing::EditorProfilerModel::clear ( )

Clear retained frames without changing configured budgets.

在文件 ProfilerModel.cpp 第 57 行定义.

◆ configure()

Result< void > eve::profiler_editing::EditorProfilerModel::configure ( EditorProfilerBudgets  budgets)

Validate and atomically replace editor-only performance budgets.

参数
budgetsCandidate budgets and history capacity.
返回
Applied, or Rejected without changing the current budgets.

在文件 ProfilerModel.cpp 第 22 行定义.

引用了 budgets(), eve::profiler_editing::EditorProfilerBudgets::cpuFrameMs, eve::profiler_editing::EditorProfilerBudgets::gpuFrameMs, eve::profiler_editing::EditorProfilerBudgets::historyFrames , 以及 eve::profiler_editing::EditorProfilerBudgets::zoneSelfMs.

◆ diagnostics()

std::vector< EditorDiagnostic > eve::profiler_editing::EditorProfilerModel::diagnostics ( ) const

◆ history()

const std::deque< EditorProfilerFrame > & eve::profiler_editing::EditorProfilerModel::history ( ) const
inline

Return the bounded owning frame history.

在文件 ProfilerModel.h 第 105 行定义.

◆ ingest()

Result< void > eve::profiler_editing::EditorProfilerModel::ingest ( EditorProfilerFrame  frame)

Append an owning completed-frame snapshot.

参数
frameCandidate frame with a strictly increasing sequence.
返回
Applied, or Conflict/Rejected without changing history.

在文件 ProfilerModel.cpp 第 34 行定义.

引用了 eve::profiler_editing::EditorProfilerFrame::cpuFrameMs, eve::profiler_editing::EditorProfilerFrame::gpuFrameMs, eve::profiler_editing::EditorProfilerBudgets::historyFrames, eve::profiler_editing::EditorProfilerFrame::sequence , 以及 eve::profiler_editing::EditorProfilerFrame::zones.

◆ moduleSummary()

std::vector< EditorProfilerModuleSummary > eve::profiler_editing::EditorProfilerModel::moduleSummary ( ) const

Aggregate copied rows by module for the latest frame.

在文件 ProfilerModel.cpp 第 87 行定义.

引用了 left, name , 以及 right.

◆ query()

std::vector< EditorProfilerZone > eve::profiler_editing::EditorProfilerModel::query ( const EditorProfilerQuery &  query) const

Query and sort copied hotspot rows from the latest frame.

在文件 ProfilerModel.cpp 第 59 行定义.

引用了 eve::profiler_editing::Count, left, eve::profiler_editing::Name, options, right, eve::profiler_editing::SelfTime , 以及 eve::profiler_editing::TotalTime.


该类的文档由以下文件生成: