mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 12:08:20 +00:00
ZAM execution changes to support richer profiling
This commit is contained in:
parent
c8d15f1eaa
commit
c29db63fdd
13 changed files with 284 additions and 131 deletions
|
@ -19,15 +19,17 @@ ZAMLocInfo::ZAMLocInfo(std::string _func_name, std::shared_ptr<Location> _loc, s
|
|||
if ( main_module != std::string::npos )
|
||||
modules.insert(func_name.substr(0, main_module));
|
||||
|
||||
if ( parent )
|
||||
parent->AddInModules(modules);
|
||||
if ( parent ) {
|
||||
auto& m = parent->GetModules();
|
||||
modules.insert(m.begin(), m.end());
|
||||
}
|
||||
}
|
||||
|
||||
std::string ZAMLocInfo::Describe(bool include_lines) const {
|
||||
std::string desc;
|
||||
|
||||
if ( blocks ) {
|
||||
desc = blocks->GetDesc(loc.get());
|
||||
if ( AST_blocks ) {
|
||||
desc = AST_blocks->GetDesc(loc.get());
|
||||
if ( parent )
|
||||
desc = parent->Describe(false) + ";" + desc;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue