Optional profiler-module bridge that copies one completed runtime frame. @thread Main-thread only, after the runtime profiler completed frame aggregation. @reentrancy Does not invoke callbacks or scripts. 更多...
#include <ProfilerModel.h>
Public 成员函数 | |
| Result< void > | collect (const profiler::Profiler &profiler, EditorProfilerModel &model) const |
| Copy and ingest the latest runtime frame. | |
详细描述
Optional profiler-module bridge that copies one completed runtime frame. @thread Main-thread only, after the runtime profiler completed frame aggregation. @reentrancy Does not invoke callbacks or scripts.
在文件 ProfilerModel.h 第 126 行定义.
成员函数说明
◆ collect()
| Result< void > eve::profiler_editing::EditorProfilerCollector::collect | ( | const profiler::Profiler & | profiler, |
| EditorProfilerModel & | model | ||
| ) | const |
Copy and ingest the latest runtime frame.
- 参数
-
profiler Immediate borrowed runtime profiler; never retained. model Editor-owned destination history.
- 返回
- Runtime capture or model validation status.
在文件 ProfilerRuntime.cpp 第 9 行定义.
引用了 eve::profiler::Profiler::captureFrame(), eve::profiler_editing::EditorProfilerFrame::cpuFrameMs, eve::Result< T >::failure(), eve::profiler_editing::EditorProfilerFrame::gpuFrameMs, eve::profiler_editing::EditorProfilerFrame::gpuTimingAvailable, model, eve::NotFound, eve::editing::ruleDiagnostic(), eve::profiler_editing::EditorProfilerFrame::sequence, status , 以及 eve::profiler_editing::EditorProfilerFrame::zones.
该类的文档由以下文件生成:
- src/modules/profiler/editing/ProfilerModel.h
- src/modules/profiler/editing/ProfilerRuntime.cpp