Details
-
Bug
-
Resolution: Fixed
-
Major - P3
-
None
-
None
-
None
-
Fully Compatible
-
ALL
-
Dev Platform 2022-07-25
Description
I made an assumption that each function action gets its own thread, but scons internally uses a thread pool, so actually the thread is alive the whole build, just getting new tasks to execute. I used the thread_time_ns function to check the current thread cpu usage, but that wont work if the threads are shared.
I think just taking a snapshot of the thread_time_ns before running the function and then calculating the difference after will work