public StringBuffer dumpAll ( ) { WComponent root = WebUtilities . getTop ( this ) ; Map < String , GroupData > compTallyByClass = new TreeMap <> ( ) ; GroupData compDataOverall = new GroupData ( ) ; StringBuffer out = new StringBuffer ( ) ; String className = root . getClass ( ) . getName ( ) ; out . append ( "<strong>The root of the WComponent tree is:</strong><br/>" ) . append ( className ) . append ( "<br/>" ) ; tally ( root , compTallyByClass , compDataOverall , out ) ; out . append ( "<strong>WComponent usage overall:</strong><br/> " ) ; out . append ( compDataOverall . total ) . append ( " WComponent(s) in the WComponent tree.<br/>" ) ; if ( compDataOverall . total > 0 ) { out . append ( "<strong>WComponent usage by class:</strong><br/>" ) ; for ( Map . Entry < String , GroupData > entry : compTallyByClass . entrySet ( ) ) { className = entry . getKey ( ) ; GroupData dataForClass = entry . getValue ( ) ; out . append ( ' ' ) . append ( dataForClass . total ) . append ( " " ) . append ( className ) . append ( "<br/>" ) ; } out . append ( "<br/><hr/>" ) ; } processUic ( out ) ; return out ; }
Dumps all the profiling information in textual format to a StringBuffer .