@@ -851,7 +851,7 @@ def test_getting_generic_method_binding_does_not_leak_memory():
851
851
import psutil , os , gc , clr
852
852
853
853
process = psutil .Process (os .getpid ())
854
- processBytesBeforeCall = process .memory_info ().private
854
+ processBytesBeforeCall = process .memory_info ().rss
855
855
print ("\n \n Memory consumption (bytes) at start of test: " + str (processBytesBeforeCall ))
856
856
857
857
iterations = 500
@@ -861,7 +861,7 @@ def test_getting_generic_method_binding_does_not_leak_memory():
861
861
gc .collect ()
862
862
clr .System .GC .Collect ()
863
863
864
- processBytesAfterCall = process .memory_info ().private
864
+ processBytesAfterCall = process .memory_info ().rss
865
865
print ("Memory consumption (bytes) at end of test: " + str (processBytesAfterCall ))
866
866
processBytesDelta = processBytesAfterCall - processBytesBeforeCall
867
867
print ("Memory delta: " + str (processBytesDelta ))
@@ -892,7 +892,7 @@ def test_getting_overloaded_method_binding_does_not_leak_memory():
892
892
import psutil , os , gc , clr
893
893
894
894
process = psutil .Process (os .getpid ())
895
- processBytesBeforeCall = process .memory_info ().private
895
+ processBytesBeforeCall = process .memory_info ().rss
896
896
print ("\n \n Memory consumption (bytes) at start of test: " + str (processBytesBeforeCall ))
897
897
898
898
iterations = 500
@@ -902,7 +902,7 @@ def test_getting_overloaded_method_binding_does_not_leak_memory():
902
902
gc .collect ()
903
903
clr .System .GC .Collect ()
904
904
905
- processBytesAfterCall = process .memory_info ().private
905
+ processBytesAfterCall = process .memory_info ().rss
906
906
print ("Memory consumption (bytes) at end of test: " + str (processBytesAfterCall ))
907
907
processBytesDelta = processBytesAfterCall - processBytesBeforeCall
908
908
print ("Memory delta: " + str (processBytesDelta ))
@@ -933,7 +933,7 @@ def test_getting_method_overloads_binding_does_not_leak_memory():
933
933
import psutil , os , gc , clr
934
934
935
935
process = psutil .Process (os .getpid ())
936
- processBytesBeforeCall = process .memory_info ().private
936
+ processBytesBeforeCall = process .memory_info ().rss
937
937
print ("\n \n Memory consumption (bytes) at start of test: " + str (processBytesBeforeCall ))
938
938
939
939
iterations = 500
@@ -943,7 +943,7 @@ def test_getting_method_overloads_binding_does_not_leak_memory():
943
943
gc .collect ()
944
944
clr .System .GC .Collect ()
945
945
946
- processBytesAfterCall = process .memory_info ().private
946
+ processBytesAfterCall = process .memory_info ().rss
947
947
print ("Memory consumption (bytes) at end of test: " + str (processBytesAfterCall ))
948
948
processBytesDelta = processBytesAfterCall - processBytesBeforeCall
949
949
print ("Memory delta: " + str (processBytesDelta ))
0 commit comments