added support for recording microtraces