per action function action cpu usage is incorrect

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Dev Platform 2022-07-25
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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

            Assignee:
            Daniel Moody
            Reporter:
            Daniel Moody
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: