mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Add stats on output size
This commit is contained in:
@@ -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};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user