File: memory.liq

package info (click to toggle)
liquidsoap 2.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,372 kB
  • sloc: ml: 71,806; javascript: 27,320; ansic: 398; xml: 114; sh: 99; lisp: 96; makefile: 26
file content (14 lines) | stat: -rwxr-xr-x 289 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env -S ../../liquidsoap ../test.liq performance.liq

m = runtime.memory().process_managed_memory
print(
  "Managed memory: #{m} octets"
)
test.metric(
  category="memory",
  name="Process managed memory",
  value=float(m) / (1024. * 1024.),
  unit="Mio",
  min=0.
)
test.pass()