Core: Add column count to debug log

This commit is contained in:
Rob Garrison 2016-07-20 07:26:45 -05:00
parent e700b2a35a
commit d8b2b27ab6
No known key found for this signature in database
GPG Key ID: 0A42D160D71978E1

View File

@ -978,7 +978,8 @@
if ( c.debug ) { if ( c.debug ) {
len = Math.min( 5, c.cache[ 0 ].normalized.length ); len = Math.min( 5, c.cache[ 0 ].normalized.length );
console[ console.group ? 'group' : 'log' ]( 'Building cache for ' + c.totalRows + console[ console.group ? 'group' : 'log' ]( 'Building cache for ' + c.totalRows +
' rows (showing ' + len + ' rows in log)' + ts.benchmark( cacheTime ) ); ' rows (showing ' + len + ' rows in log) and ' + c.columns + ' columns' +
ts.benchmark( cacheTime ) );
val = {}; val = {};
for ( colIndex = 0; colIndex < c.columns; colIndex++ ) { for ( colIndex = 0; colIndex < c.columns; colIndex++ ) {
for ( cacheIndex = 0; cacheIndex < len; cacheIndex++ ) { for ( cacheIndex = 0; cacheIndex < len; cacheIndex++ ) {
@ -2104,7 +2105,7 @@
*/ */
benchmark : function( diff ) { benchmark : function( diff ) {
return ( ' ( ' + ( new Date().getTime() - diff.getTime() ) + 'ms )' ); return ( ' (' + ( new Date().getTime() - diff.getTime() ) + ' ms)' );
}, },
// deprecated ts.log // deprecated ts.log
log : function() { log : function() {