def get_thread_stats():
_yappi._pause()<EOL>try:<EOL><INDENT>stats = YThreadStats().get()<EOL><DEDENT>finally:<EOL><INDENT>_yappi._resume()<EOL><DEDENT>return stats<EOL>
Gets the thread profiler results with given filters and returns an iterable.