/usr/share/dx/samples/scripts/Usage is in dxsamples 4.4.0-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | // this must be run -readahead off to look for memory leaks
// If a leak is present, then the memory usage as displayed by Usage
// will increase.
macro show()
{
iso = Isosurface(data);
Print(iso);
}
data = Import("cloudwater");
show();
show();
Executive("flush cache");
Usage("memory", 0);
show();
Executive("flush cache");
Usage("memory", 0);
show();
Executive("flush cache");
Usage("memory", 0);
|