expand profiling to include values to which globals are assigned

This commit is contained in:
Vern Paxson 2021-04-19 16:21:09 -07:00
parent dd05beff50
commit 158e82a2c1
2 changed files with 104 additions and 4 deletions

View file

@ -339,6 +339,10 @@ protected:
// Incorporate the given function profile into the global profile.
void MergeInProfile(ProfileFunc* pf);
// Recursively traverse a (possibly aggregate) value to extract
// all of the types its elements use.
void TraverseValue(const ValPtr& v);
// When traversing types, Zeek records can have attributes that in
// turn have expressions associated with them. The expressions can
// in turn have types, which might be records with further attribute