Debug object counter #1

Open
opened 2023-11-16 10:09:53 +01:00 by Daniel · 0 comments
Owner

When in debug mode (#define DEBUG 1 for example) a object counter object should be inherited from all classes which tracks how often they have been instantiated and if all have been deleted. But really only use this in debug mode, as this takes up runtime.

The reason I want to do this is that maybe using raw pointers is faster than using unique_ptr/shared_ptr (look into this)

Look at the things we got in the first Semester FCW, as this object exists and is used in the provided C++ source code.

When in debug mode (#define DEBUG 1 for example) a object counter object should be inherited from all classes which tracks how often they have been instantiated and if all have been deleted. But really only use this in debug mode, as this takes up runtime. The reason I want to do this is that maybe using raw pointers is faster than using unique_ptr/shared_ptr (look into this) Look at the things we got in the first Semester FCW, as this object exists and is used in the provided C++ source code.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Daniel/Engine#1
No description provided.