34 #define PERF_WARN_OFFLINE_FUNCTION 35 #define PERF_WARN_PROCESS_SYNC 43 static void _bind_methods();
46 float _fixed_process_time;
58 MEMORY_MESSAGE_BUFFER_MAX,
60 OBJECT_RESOURCE_COUNT,
62 RENDER_OBJECTS_IN_FRAME,
63 RENDER_VERTICES_IN_FRAME,
64 RENDER_MATERIAL_CHANGES_IN_FRAME,
65 RENDER_SHADER_CHANGES_IN_FRAME,
66 RENDER_SURFACE_CHANGES_IN_FRAME,
67 RENDER_DRAW_CALLS_IN_FRAME,
68 RENDER_VIDEO_MEM_USED,
69 RENDER_TEXTURE_MEM_USED,
70 RENDER_VERTEX_MEM_USED,
71 RENDER_USAGE_VIDEO_MEM_TOTAL,
72 PHYSICS_2D_ACTIVE_OBJECTS,
73 PHYSICS_2D_COLLISION_PAIRS,
74 PHYSICS_2D_ISLAND_COUNT,
75 PHYSICS_3D_ACTIVE_OBJECTS,
76 PHYSICS_3D_COLLISION_PAIRS,
77 PHYSICS_3D_ISLAND_COUNT,
83 float get_monitor(Monitor p_monitor)
const;
84 String get_monitor_name(Monitor p_monitor)
const;
86 void set_process_time(
float p_pt);
87 void set_fixed_process_time(
float p_pt);
89 static Performance *get_singleton() {
return singleton; }
95 VARIANT_ENUM_CAST( Performance::Monitor );
98 #endif // PERFORMANCE_H