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

Create scons builtin metrics

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Dev Platform 2022-06-27, Dev Platform 2022-07-11, Dev Platform 2022-07-25

      SCons has built in metrics for reporting information about its own usage via --debug=time,memory,count. It includes memory usage at certain critical points in the build, as well as counts of certain objects in use during the build. It also provides wall clock timing metrics.

      Note: It does not give cpu usage, so if there is time for some scope creep, we could add some sort of scons cpu usage metric. It may be difficult to differentiate that with function actions which will run in threads in the scons process.

      Json Format:
      
      {
       scons_metrics: {
       memory: {
      pre_read: <long>(1),
      post_read: <long>(1),
      pre_build: <long>(1),
      post_build: <long>(1) 	
       }
       time: {
      		total: <float>(1),
      		sconscript_exec: <float>(1), 
      scons_exec: <float>(1),
      Command_exec: <float>(1)
      	 },
      	 counts: [{
      		 array_index: <int>(1),
      		 item_name: <str>(1),
      		 pre_read: <long>(1),
       post_read: <long>(1),
       pre_build: <long>(1),
       post_build: <long>(1) 
       }]
       },
      }
      
      

            Assignee:
            richard.samuels@mongodb.com Richard Samuels (Inactive)
            Reporter:
            daniel.moody@mongodb.com Daniel Moody
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: