Changeset f43146e4
- Timestamp:
- Oct 27, 2023, 2:11:39 PM (14 months ago)
- Branches:
- master
- Children:
- 0b5e780
- Parents:
- bef4f1a
- Location:
- src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Pass.cpp
rbef4f1a rf43146e4 19 19 20 20 PassVisitorStats pass_visitor_stats; 21 // TODO: There was a counter for every syntax node created. 22 // This has not been translated to the new ast. 21 23 // Stats::Counters::SimpleCounter * BaseSyntaxNode::new_nodes = nullptr; 22 24 -
src/main.cc
rbef4f1a rf43146e4 94 94 using namespace Stats::Counters; 95 95 { 96 static auto group = build<CounterGroup>( "Pass Visitor " );96 static auto group = build<CounterGroup>( "Pass Visitor Template" ); 97 97 auto pass = build<CounterGroup>( name, group ); 98 pass_visitor_stats.depth = 0;99 pass_visitor_stats.avg = build<AverageCounter<double>>( "Average Depth", pass );100 pass_visitor_stats.max = build<MaxCounter<double>>( "Max Depth", pass );98 ast::pass_visitor_stats.depth = 0; 99 ast::pass_visitor_stats.avg = build<AverageCounter<double>>( "Average Depth", pass ); 100 ast::pass_visitor_stats.max = build<MaxCounter<double>>( "Max Depth", pass ); 101 101 } 102 102 { … … 319 319 320 320 Stats::Time::StopBlock(); 321 322 if (Stats::Counters::enabled) {323 ast::pass_visitor_stats.avg = Stats::Counters::build<Stats::Counters::AverageCounter<double>>("Average Depth - New");324 ast::pass_visitor_stats.max = Stats::Counters::build<Stats::Counters::MaxCounter<double>>("Max depth - New");325 }326 321 327 322 PASS( "Hoist Type Decls", Validate::hoistTypeDecls, transUnit );
Note: See TracChangeset
for help on using the changeset viewer.