Flecs v3.1
A fast entity component system (ECS) for C & C++
Loading...
Searching...
No Matches
monitor.h
1
9#ifdef FLECS_MONITOR
10
19#ifndef FLECS_MONITOR_H
20#define FLECS_MONITOR_H
21
22#ifndef FLECS_MODULE
23#define FLECS_MODULE
24#endif
25
26#ifndef FLECS_STATS
27#define FLECS_STATS
28#endif
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
34FLECS_API extern ECS_COMPONENT_DECLARE(FlecsMonitor);
35FLECS_API extern ECS_COMPONENT_DECLARE(EcsWorldStats);
37
38FLECS_API extern ecs_entity_t EcsPeriod1s;
39FLECS_API extern ecs_entity_t EcsPeriod1m;
40FLECS_API extern ecs_entity_t EcsPeriod1h;
41FLECS_API extern ecs_entity_t EcsPeriod1d;
42FLECS_API extern ecs_entity_t EcsPeriod1w;
43
44typedef struct {
45 ecs_ftime_t elapsed;
46 int32_t reduce_count;
48
49typedef struct {
50 EcsStatsHeader hdr;
53
54typedef struct {
58
59/* Module import */
60FLECS_API
61void FlecsMonitorImport(
62 ecs_world_t *world);
63
64#ifdef __cplusplus
65}
66#endif
67
68#endif
69
72#endif
ecs_id_t ecs_entity_t
An entity identifier.
Definition: flecs.h:220
struct ecs_world_t ecs_world_t
A world is the container for all ECS data and supporting features.
Definition: flecs.h:229
#define ECS_COMPONENT_DECLARE(id)
Forward declare a component.
Definition: flecs_c.h:93
#define ecs_ftime_t
Customizable precision for scalar time values.
Definition: flecs.h:42
Statistics for all systems in a pipeline.
Definition: stats.h:205