Former-commit-id:a02aeb236c
[formerly9f19e3f712
] [formerly06a8b51d6d
[formerly 64fa9254b946eae7e61bbc3f513b7c3696c4f54f]] Former-commit-id:06a8b51d6d
Former-commit-id:3360eb6c5f
20 lines
346 B
Python
Executable file
20 lines
346 B
Python
Executable file
# test memory
|
|
# run with something like:
|
|
# java -Xmx2m -Xnoclassgc -classpath ../ jep.Run memtest.py
|
|
|
|
import os
|
|
|
|
import jep
|
|
from jep import *
|
|
|
|
Jep = findClass('jep.Jep')
|
|
|
|
for i in range(1, 50000):
|
|
j = Jep()
|
|
j.eval("a = %i" % i)
|
|
print 'a = ', j.getValue("a")
|
|
j.close()
|
|
del j
|
|
|
|
# attach gdb
|
|
#raw_input('gdb: %i' % (os.getpid()))
|