nl_tokens: Parses out information about each thread and includes the backtrace of each thread . We also include the name of the thread and where it was dispatched from ( if that information is available ) .
pl_tokens: function parse ( report , crash , threads ) { crash = crash || report [ 'crash' ] || { } ; threads = threads || crash [ 'threads' ] || [ ] ; var rows = [ ] ; var idx = 0 ; _ . each ( threads , function ( thread ) { if ( idx ++ !== 0 ) { rows . push ( '' ) ; } var index = thread [ 'index' ] ; var name = thread [ 'name' ] ; var queue = thread [ 'dispatch_queue' ] ; if ( name ) { rows . push ( ` ${ index } ${ name } ` ) ; } else if ( queue ) { rows . push ( ` ${ index } ${ queue } ` ) ; } if ( thread [ 'crashed' ] ) { rows . push ( ` ${ index } ` ) ; } else { rows . push ( ` ${ index } ` ) ; } var backtrace = thread [ 'backtrace' ] ; var trace_log = Backtrace . parse_backtrace ( backtrace ) ; rows = <mask> . concat ( trace_log ) ; } ) ; return rows ; }