nasa / trick

Trick Simulation Environment. Trick provides a common set of simulation capabilities and utilities to build simulations automatically.
Other
32 stars 16 forks source link

S_job_execution enhancement #1637

Closed amishscientist closed 7 months ago

amishscientist commented 7 months ago

It would be nice if there was more thread info in the thread section of the S_job_execution file.

For example it would be nice to know the rates for the child threads would help a lot into figuring out quickly if sims have child type or rate mismatches.

This is what it is showing me now

Trick::Threads (Child_2) process_type = asynchronous trigger type = mutex number of scheduled jobs = 22 from Trick::ThreadBase pthread_id = 140326706603776 process_id = 1417105 rt_priority = 0 cpus = none assigned Trick::Threads (Child_3) process_type = scheduled trigger type = mutex number of scheduled jobs = 40 from Trick::ThreadBase pthread_id = 140326698211072 process_id = 1417107 rt_priority = 0 cpus = none assigned

hchen99 commented 7 months ago

Currently the cycle time is printed to S_job_execution only for PROCESS_TYPE_AMF_CHILD:

hchen99 commented 7 months ago

Updated to dump cycle time for all types. However, if there is a particular reason for only dumping cycle time for PROCESS_TYPE_AMF_CHILD, the pull request would get rejected.