Category
Function
Prints information about current use of resources.
Syntax
Usage(what, how);
Inputs
Name | Type | Default | Description |
---|---|---|---|
what | string | none | the string to be printed |
how | integer | 0 | level of detail |
Functional Details
The output of this module appears in the Message window of the user interface. Since, the module traverses the entire memory, it can be used to check for corruption of the memory area.
what | specifies what resource information is to be printed. Currently, the only allowed value for this parameter is "memory." | ||||||||||||||||||||||||||
how | specifies the level of detail of the printout.
|
Note: You can easily specify Usage("memory", 0) by using the Show Memory Use button in the Commands menu of the Message window. The information provided by this module applies to memory use at the time of execution and should be interpreted with that restriction in mind. See DXPrintAlloc in IBM Visualization Data Explorer Programmer's Reference for more information.
Script Language Example
This example shows the use of memory before and after the Isosurface module is printed. (For this example, Data Explorer should be started with the -readahead off option.)
electrondensity = Import("/usr/local/dx/samples/data/watermolecule"); camera = AutoCamera(electrondensity,width=5); Usage("memory", 1); isosurface = Isosurface(electrondensity,0.3); Usage("memory", 1); Display(isosurface,camera);
See Also
[ OpenDX Home at IBM | OpenDX.org ]