Add stats on output size

This commit is contained in:
Wilson Snyder
2024-03-24 10:50:53 -04:00
parent 71d76c993c
commit 34e4cffb62
4 changed files with 31 additions and 8 deletions
+10
View File
@@ -23,6 +23,11 @@
VL_DEFINE_DEBUG_FUNCTIONS;
//######################################################################
// Statics
V3Mutex V3Stats::s_mutex;
//######################################################################
// Stats class functions
@@ -165,6 +170,11 @@ public:
//######################################################################
// Top Stats class
void V3Stats::addStatSum(const string& name, double count) VL_MT_SAFE_EXCLUDES(s_mutex) {
V3LockGuard lock{s_mutex};
addStat(V3Statistic{"*", name, count, 0, true});
}
void V3Stats::statsStageAll(AstNetlist* nodep, const std::string& stage, bool fastOnly) {
StatsVisitor{nodep, stage, fastOnly};
}