mirror of
https://github.com/YosysHQ/yosys
synced 2025-11-06 14:26:04 +00:00
Add timing stats for IdString garbage collection
This commit is contained in:
parent
cd47727c8b
commit
7371388e1d
5 changed files with 22 additions and 0 deletions
|
|
@ -129,6 +129,11 @@ void Pass::post_execute(Pass::pre_post_exec_state_t state)
|
|||
int64_t time_ns = PerformanceTimer::query() - state.begin_ns;
|
||||
runtime_ns += time_ns;
|
||||
current_pass = state.parent_pass;
|
||||
subtract_from_current_runtime_ns(time_ns);
|
||||
}
|
||||
|
||||
void Pass::subtract_from_current_runtime_ns(int64_t time_ns)
|
||||
{
|
||||
if (current_pass)
|
||||
current_pass->runtime_ns -= time_ns;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue