def __call__(self): threadModels = dict( (thread_id, tm.ThreadModel(thread_id, stack)) for thread_id, stack in sys._current_frames().items()) if self.traceback is not None: curr_thread_id = threading.current_thread().ident threadModels[curr_thread_id] = tm.ThreadModel( curr_thread_id, self.traceback) return mwdv.ModelWithDefaultViews(threadModels, text_view=text_views.MultiView())
def __call__(self): threadModels = [ tm.ThreadModel(thread_id, stack) for thread_id, stack in sys._current_frames().items() ] return mwdv.ModelWithDefaultViews(threadModels, text_view=text_views.MultiView())
def __call__(self): threadModels = [ tm.ThreadModel(thread_id, stack) for thread_id, stack in sys._current_frames().items() ] thread_pairs = dict(zip(range(len(threadModels)), threadModels)) return mwdv.ModelWithDefaultViews(thread_pairs, text_view=text_views.MultiView())