Edward can speak to the built-in leo traces, but there are also other options.
I mentioned in the thread at
https://groups.google.com/forum/#!topic/leo-editor/r6ktpQNWySk, about using the python trace module for debugging python applications, but I no longer recommend using it because it is too difficult to filter out noise. Since then I've discovered
https://github.com/ionelmc/python-hunter and it is excellent. You can filter exactly which modules do and don't get traced and the colorized output looks nice.
Depending on what pattern of modules you pick to trace you will still get a firehose of information. You can either fine-tune your python-hunter queries more or just save the trace output to a file which you can search through.
But sometimes the approach Edward advocates in the above thread of modifying the code yourself and adding traces and using clones will be better. It's wise to heed his caution about signal to noise ratio :-).
Here is an example python hunter trace I've run on leo (after pip install hunter):
PYTHONHUNTER="module='leo.core.leoApp'" HOME=$HOME/tmp/blank ../pyqt-3.7-venv/bin/python launchLeo.py ~/tmp/new.leo
Here are some more example trace queries I've used:
PYTHONHUNTER="module_in=['leo.core.leoApp', 'leo.core.leoNodes']"
PYTHONHUNTER="~Q(kind='line'),module_in=['leo.core.leoApp', 'leo.core.leoNodes']"
PYTHONHUNTER="Q(module_startswith='leo')"
Here, I redirect to the pager program 'less' and do it in such a way as to not lose the color. By using less, I can search through the results (leo-bridge-test.py is just a file I was using to learn about leo bridge).
PYTHONHUNTER="Q(module_startswith='leo'),action=CallPrinter(force_colors=True)" HOME=$HOME/tmp/blank ../pyqt-3.7-venv/bin/python leo-bridge-test.py 2>&1 | less -R
Not sure this is really what you are after, but I thought I'd share in case in helps.
Brian