TotalView Online Help : Chapter 10 Other Topics : Setting Search Paths Using TotalView Variables : TotalView Built-in Functions : Using the $tree() Function
Using the $tree() Function
The $tree() function takes a colon-separated list of directories, and uses a simple tree-walking algorithm to add each directory under the top level to the search path. Previously, TotalView would look only in the specific directories named, which could be tedious to add to the search path if a large number of directories contained source files. $tree() does this automatically. For example:
$tree(/usr/project/src_A:/home/test/foo)
This adds all the directories and sub-directories under both /usr/project/src_A and /home/test/foo to the current search path. The $tree() list is walked every time the search path is looked up, so its use may incur a slight performance penalty if this involves a deeply nested directory structure.
The $tree() function cannot be the first or last entry in the Source tab, but you can have more than one $tree() entry.