-
Type: New Feature
-
Resolution: Fixed
-
Priority: Major - P3
-
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) }] }, }
- has to be done after
-
SERVER-67044 Create build metrics CLI interface and generic output
- Closed
-
SERVER-67109 create build metrics json validator
- Closed
- has to be done before
-
SERVER-67060 Create metrics evergreen task
- Closed