载入中...
搜索中...
未找到
ProfilerQuery.h
浏览该文件的文档.
1#pragma once
2
3#include "common/Export.h"
4
5#include <cstddef>
6#include <string>
7
8namespace eve {
9
22public:
23 static constexpr const char* capabilityName = "IProfilerQuery";
24
26 virtual ~IProfilerQuery() = default;
27
29 [[nodiscard]] virtual bool enabled() const = 0;
30
46 [[nodiscard]] virtual std::string frameJson() const = 0;
47
57 [[nodiscard]] virtual std::string hotspotsJson(std::size_t limit, double minSelfMs) const = 0;
58
60 [[nodiscard]] virtual std::string textReport() const = 0;
61};
62
63} // namespace eve
#define EVENGINE_API
宿主(eve / libmain)导出宏;插件从进程导入同一批符号。
Definition Export.h:31
int limit
Definition TreeMesh.cpp:166
Runtime profiler read surface (provided by the profiler module).
virtual std::string textReport() const =0
Human-readable per-zone report of the last completed frame.
virtual std::string frameJson() const =0
Last completed frame as compact JSON.
virtual bool enabled() const =0
Whether the profiler is currently collecting zones.
virtual ~IProfilerQuery()=default
I profiler query.
virtual std::string hotspotsJson(std::size_t limit, double minSelfMs) const =0
Top zones by self time as JSON.
Build metadata (engine git commit, build time, third-party version).
Definition Build.cpp:16