- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Any method to know how much memory is taken by a BODY?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-24-2007 08:16 AM
Re: Any method to know how much memory is taken by a BODY?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-30-2007 06:55 AM
Re: Any method to know how much memory is taken by a BODY?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
12-03-2007 12:07 PM
ACIS (currently) does not have a function to determine the amount of storage used by a given set of entities. However, you may be able to obtain some useful information by customizing the ACIS memory manager. You can, for example, install a custom allocator and destructor through which you can determine the amount of storage consumed by a particular operation (e.g. restore). We provide example code in Scheme to help identify out of bounds memory writes (search for ‘raw_allocator’). This, along with the ACIS Memory Manger documentation, may provide useful insights. Also, all entity types have a size method that correctly returns the class object size of the given type (e.g. BODY, LUMP, SHELL, etc.). This however is of limited use because it does not include the storage used for geometry and other data referenced through pointers. (This is the data reported by the scheme debug function.)
Best regards,
Jeff

