载入中...
搜索中...
未找到
Profile.h 文件参考
#include "common/Export.h"
#include <atomic>
#include <cstdint>
#include <string>
#include <vector>

浏览源代码.

类

struct  eve::prof::ZoneRecord
 One completed profiling zone (pre-order, parent-linked within a thread). 更多...
 
struct  eve::prof::ZoneSample
 Per-module/per-zone aggregate of the last completed frame. 更多...
 
class  eve::prof::Profiler
 Global zone collector + per-frame aggregator. 更多...
 
class  eve::prof::ZoneScope
 RAII scoped zone (used via the EV_PROFILE_* macros). 更多...
 

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::prof
 

宏定义

#define EVENGINE_COMMON_PROFILE_H
 
#define EV_PROFILE_CAT_I(a, b)   a##b
 
#define EV_PROFILE_CAT(a, b)   EV_PROFILE_CAT_I(a, b)
 
#define EV_PROFILE_ZONE_FUNC()    ::eve::prof::ZoneScope EV_PROFILE_CAT(ev_zone_, __LINE__)(__func__)
 Profile the enclosing scope, auto-named from the current function.
 
#define EV_PROFILE_ZONE(name)    ::eve::prof::ZoneScope EV_PROFILE_CAT(ev_zone_, __LINE__)(name)
 Profile the enclosing scope with an explicit name.
 
#define EV_PROFILE_MODULE(module, name)    ::eve::prof::ZoneScope EV_PROFILE_CAT(ev_zone_, __LINE__)(name, module)
 Profile the enclosing scope, tagged with a module for grouping.
 

宏定义说明

◆ EV_PROFILE_CAT

#define EV_PROFILE_CAT (   a,
  b 
)    EV_PROFILE_CAT_I(a, b)

在文件 Profile.h 第 129 行定义.

◆ EV_PROFILE_CAT_I

#define EV_PROFILE_CAT_I (   a,
  b 
)    a##b

在文件 Profile.h 第 128 行定义.

◆ EV_PROFILE_MODULE

#define EV_PROFILE_MODULE (   module,
  name 
)     ::eve::prof::ZoneScope EV_PROFILE_CAT(ev_zone_, __LINE__)(name, module)

Profile the enclosing scope, tagged with a module for grouping.

在文件 Profile.h 第 140 行定义.

◆ EV_PROFILE_ZONE

#define EV_PROFILE_ZONE (   name)     ::eve::prof::ZoneScope EV_PROFILE_CAT(ev_zone_, __LINE__)(name)

Profile the enclosing scope with an explicit name.

在文件 Profile.h 第 136 行定义.

◆ EV_PROFILE_ZONE_FUNC

#define EV_PROFILE_ZONE_FUNC ( )     ::eve::prof::ZoneScope EV_PROFILE_CAT(ev_zone_, __LINE__)(__func__)

Profile the enclosing scope, auto-named from the current function.

在文件 Profile.h 第 132 行定义.

◆ EVENGINE_COMMON_PROFILE_H

#define EVENGINE_COMMON_PROFILE_H

在文件 Profile.h 第 4 行定义.