ZAM execution changes to support richer profiling

This commit is contained in:
Vern Paxson 2024-03-10 17:11:04 -04:00 committed by Tim Wojtulewicz
parent c8d15f1eaa
commit c29db63fdd
13 changed files with 284 additions and 131 deletions

View file

@ -635,9 +635,9 @@ private:
// Goes through all of the functions to associate full location information
// with each AST node.
class BlockAnalyzer : public TraversalCallback {
class ASTBlockAnalyzer : public TraversalCallback {
public:
BlockAnalyzer(std::vector<FuncInfo>& funcs);
ASTBlockAnalyzer(std::vector<FuncInfo>& funcs);
TraversalCode PreStmt(const Stmt*) override;
TraversalCode PostStmt(const Stmt*) override;
@ -699,7 +699,7 @@ private:
// If we're profiling, this provides the analysis of how low-level location
// information relates to higher-level statement blocks.
extern std::unique_ptr<BlockAnalyzer> blocks;
extern std::unique_ptr<ASTBlockAnalyzer> AST_blocks;
// Returns the full name of a function at a given location, including its
// associated module (even for event handlers that don't actually have