Open fl4p-old opened 4 years ago
Replaced filter with dict:
CPU profile by ttot:
name ncall tsub ttot tavg
..simulator/Simulation.py:29 runSimulation 1 0.115822 1.384722 1.384722
..tor/SIRModel.py:57 SIRModel.nextTimeStep 806 0.597420 1.192870 0.001480
..SIRModel.py:90 SIRModel.includeCommuters 806 0.088000 0.088000 0.000109
..odel.py:113 SIRModel.setOutgoingCommuter 41984 0.075872 0.075872 0.000002
..jnb/lib/python3.7/queue.py:153 Queue.get 20 0.000495 0.002594 0.000130
..l/simulator/SIRModel.py:48 SIRModel.dSus 806 0.001670 0.001670 0.000002
..ython3.7/threading.py:264 Condition.wait 15 0.000444 0.001669 0.000111
..l/simulator/SIRModel.py:51 SIRModel.dInf 806 0.001638 0.001638 0.000002
..l/simulator/SIRModel.py:54 SIRModel.dRec 806 0.001424 0.001424 0.000002
..vd.py:716 PyDB.process_internal_commands 4 0.000298 0.001024 0.000256
..ib/python3.7/threading.py:534 Event.wait 3 0.000056 0.000440 0.000147
../lib/python3.7/queue.py:208 Queue._qsize 34 0.000202 0.000300 0.000009
..eading.py:252 Condition._acquire_restore 17 0.000220 0.000280 0.000016
..n3.7/threading.py:243 Condition.__exit__ 29 0.000208 0.000278 0.000010
..3.7/threading.py:240 Condition.__enter__ 29 0.000153 0.000194 0.000007
..3.7/threading.py:255 Condition._is_owned 17 0.000092 0.000123 0.000007
../lib/python3.7/dis.py:436 findlinestarts 51 0.000105 0.000105 0.000002
..pydevd.py:678 PyDB.notify_thread_created 4 0.000089 0.000100 0.000025
..ib/python3.7/threading.py:1244 enumerate 4 0.000078 0.000092 0.000023
..threading.py:249 Condition._release_save 17 0.000047 0.000076 0.000004
..ev/pydevd.py:596 PyDB.get_internal_queue 8 0.000051 0.000065 0.000008
..b/python3.7/threading.py:524 Event.clear 4 0.000023 0.000058 0.000015
..ydev/pydevd.py:211 TrackedLock.__enter__ 4 0.000018 0.000042 0.000010
..pydev/pydevd.py:214 TrackedLock.__exit__ 4 0.000016 0.000035 0.000009
..mulator/SIRModel.py:143 SIRModel.__str__ 2 0.000032 0.000032 0.000016
CPU profile by tsub:
name ncall tsub ttot tavg
..tor/SIRModel.py:57 SIRModel.nextTimeStep 806 0.597420 1.192870 0.001480
..simulator/Simulation.py:29 runSimulation 1 0.115822 1.384722 1.384722
..SIRModel.py:90 SIRModel.includeCommuters 806 0.088000 0.088000 0.000109
..odel.py:113 SIRModel.setOutgoingCommuter 41984 0.075872 0.075872 0.000002
..l/simulator/SIRModel.py:48 SIRModel.dSus 806 0.001670 0.001670 0.000002
..l/simulator/SIRModel.py:51 SIRModel.dInf 806 0.001638 0.001638 0.000002
..l/simulator/SIRModel.py:54 SIRModel.dRec 806 0.001424 0.001424 0.000002
..jnb/lib/python3.7/queue.py:153 Queue.get 20 0.000495 0.002594 0.000130
..ython3.7/threading.py:264 Condition.wait 15 0.000444 0.001669 0.000111
..vd.py:716 PyDB.process_internal_commands 4 0.000298 0.001024 0.000256
..eading.py:252 Condition._acquire_restore 17 0.000220 0.000280 0.000016
..n3.7/threading.py:243 Condition.__exit__ 29 0.000208 0.000278 0.000010
../lib/python3.7/queue.py:208 Queue._qsize 34 0.000202 0.000300 0.000009
..3.7/threading.py:240 Condition.__enter__ 29 0.000153 0.000194 0.000007
../lib/python3.7/dis.py:436 findlinestarts 51 0.000105 0.000105 0.000002
..3.7/threading.py:255 Condition._is_owned 17 0.000092 0.000123 0.000007
..pydevd.py:678 PyDB.notify_thread_created 4 0.000089 0.000100 0.000025
..ib/python3.7/threading.py:1244 enumerate 4 0.000078 0.000092 0.000023
..ib/python3.7/threading.py:534 Event.wait 3 0.000056 0.000440 0.000147
..ev/pydevd.py:596 PyDB.get_internal_queue 8 0.000051 0.000065 0.000008
..threading.py:249 Condition._release_save 17 0.000047 0.000076 0.000004
..mulator/SIRModel.py:143 SIRModel.__str__ 2 0.000032 0.000032 0.000016
..b/python3.7/threading.py:524 Event.clear 4 0.000023 0.000058 0.000015
..ydev/pydevd.py:211 TrackedLock.__enter__ 4 0.000018 0.000042 0.000010
../pydev/pydevd.py:203 TrackedLock.acquire 4 0.000018 0.000024 0.000006