Open
Description
We need a mechanism to collect the time and resource consumption of nydus at each stage of build time and run time to give us insight into the performance impact of development iterations, identify performance bottlenecks, etc. The main requirements are as follows.
- The ability to count the time consumed by nydus-image/nydusd at each stage in span format.
- Statistics on memory usage, CPU, and network requests.
- The ability to present performance data in report form and compare it with the previous result.
It should be noted that when adding a tracepoint, it is as least invasive to the code as possible and does not lose too much performance, or there is a switch to control the trace.
Referenceable tools or libraries: