I'm using Qt and C++, I need to find out the amount of memory used by instances of certain Qt classes, this is usually done using sizeof, however in Qt each class holds a pointer to an another class containing the actual implementation, the definition of this private implementation class is not found in headers but only in the source-code.
I'm new to Qt so may be there's a standard way to do this, if there isn't do you have any ideas to solve this?
See Question&Answers more detail:os