multithreading - How can I profile memory of multithread program in Python? -


is there way profile memory of multithread program in python?

for cpu profiling, using cprofile create seperate profiler stats each thread , later combine them. however, couldn't find way memory profilers. using heapy.

is there way combine stats in heapy cprofile? or other memory profilers suggest more suitable task.

a related question asked profiling cpu usage on multi-thread program: how can profile multithread program in python?

also question regarding memory profiler: python memory profiler

if happy profile objects rather raw memory, can use gc.get_objects() function don't need custom metaclass. in more recent python versions, sys.getsizeof() let take shot @ figuring out how underlying memory in use objects.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -