File: Usage

package info (click to toggle)
dxsamples 4.4.0-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 26,340 kB
  • sloc: ansic: 10,079; sh: 8,445; java: 1,772; makefile: 1,102
file content (26 lines) | stat: -rw-r--r-- 412 bytes parent folder | download | duplicates (5)
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);