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

Create scons builtin metrics

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 6.1.0-rc0
    • None
    • None
    • Fully Compatible
    • Dev Platform 2022-06-27, Dev Platform 2022-07-11, Dev Platform 2022-07-25

    Description

      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) 
       }]
       },
      }
      
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: