GetInstanceMetaInfo

This function is meant for debugging purposes and return statistics during processing.
The return value represents the number of active instances within the model (or zero if the instance was not recognized).

Syntax

//
//   Strong typing definition
//
int64_t         GetInstanceMetaInfo(
                        OwlInstance             owlInstance,
                        int64_t                 * allocatedBlocks,
                        int64_t                 * allocatedBytes
                    );


//
//   Weak typing definition
//
int64_t __declspec(dllexport) __stdcall GetInstanceMetaInfo(
                                                int64_t                 owlInstance,
                                                int64_t                 * allocatedBlocks,
                                                int64_t                 * allocatedBytes
                                            );
    

Property owlInstance

Size: 64 bit / 8 byte (value)
The handle to the specific instance in the design tree. The instance handle is static within one open model but is most probably different when the same instance is opened in another model. The instance is always exactly of one unique class.

Property allocatedBlocks

Size: 32 bit / 4 byte (reference)
The number of allocated memory blocks available in the current instance of the Library within the current instance. Only memory blocks coordinated by the internal memory manager are counted.

Property allocatedBytes

Size: 32 bit / 4 byte (reference)
The total number of bytes within the allocated memory blocks available in the current instance of the Library within the current instance.