I don’t know much about RTTI, but I believe that thanks to that you can retrieve the name of variables at run-time. 
Is it possible to retrieve the name of the function the thread is currently running ?