sonic-swss
sonic-swss copied to clipboard
[orchstats]: Add orch stats for orchagent profiling
What I did Add a new orchstats class and background thread for orchagent task statistics.
Why I did it The original record, swss.rec, will take too much CPU and disk space in the scenario of a huge entry scale. So, a flyweight statistic method is needed for monitoring the performance of orchagent.
How I verified it The SWSS Azp should pass and the PR: https://github.com/sonic-net/sonic-mgmt/pull/8505 provides a script for profiling orchagent.
Details if related
/azp run
Azure Pipelines successfully started running 1 pipeline(s).