File: memory-leak-check.py

package info (click to toggle)
python-schema-salad 8.9.20250723145140-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,076 kB
  • sloc: python: 19,177; cpp: 2,631; cs: 1,869; java: 1,341; makefile: 187; xml: 184; sh: 103; javascript: 46
file content (14 lines) | stat: -rw-r--r-- 331 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env python

import sys

import cwl_utils.parser  # type: ignore[import-not-found]
import objgraph  # type: ignore[import-untyped]

growth = []
for _ in range(5):
    growth = objgraph.growth(limit=50)
    cwl_utils.parser.load_document_by_uri(sys.argv[1])
objgraph.show_growth(limit=50)
if len(growth) != 0:
    exit(1)