Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-68086

per action function action cpu usage is incorrect

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

      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@mongodb.com Daniel Moody
            Reporter:
            daniel.moody@mongodb.com Daniel Moody
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: