File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,9 @@ Description :
15
15
var isQuickInstalled = getController ().getModuleService ().isModuleRegistered ( " quick" );
16
16
var isQBInstalled = getController ().getModuleService ().isModuleRegistered ( " qb" );
17
17
var totalQueries = request .cbdebugger .keyExists ( " qbQueries" ) ? request .cbdebugger .qbQueries .all .len () : 0 ;
18
+ var totalExecutionTime = ! request .cbdebugger .keyExists ( " qbQueries" ) ? 0 : request .cbdebugger .qbQueries .all .reduce ( function ( total , q ) {
19
+ return total + q .executionTime ;
20
+ }, 0 );
18
21
var totalEntities = request .cbdebugger .keyExists ( " quick" ) ? request .cbdebugger .quick .total : 0 ;
19
22
</cfscript >
20
23
<cfoutput >
@@ -101,10 +104,19 @@ Description :
101
104
</tbody >
102
105
</table >
103
106
</div >
107
+ <div style =" margin-top: 0.5em; margin-left: 1em;" >
108
+ <div class =" fw_debugTitleCell" >
109
+ Total Execution Time:
110
+ </div >
111
+ <div class =" fw_debugContentCell" >
112
+ #totalExecutionTime # ms
113
+ </div >
114
+ </div >
104
115
</cfif >
105
116
</cfif >
106
117
</div >
107
118
<cfif isQuickInstalled >
119
+ <hr />
108
120
<div id =" quickEntities" style =" margin-top: 1em;" >
109
121
<div class =" fw_subtitles" > Entities <span class =" fw_badge_dark" style =" margin-left: 1em;" >#totalEntities #</span ></div >
110
122
<cfif totalEntities EQ 0 >
@@ -120,7 +132,7 @@ Description :
120
132
<tbody >
121
133
<cfloop collection =" #request .cbdebugger .quick .byMapping #" item =" mapping" >
122
134
<tr <cfif debugTimers .currentrow mod 2 eq 0 >class =" even" </cfif >>
123
- <td >#request .cbdebugger .quick .byMapping [ mapping ] #</td >
135
+ <td align = " center " >#request .cbdebugger .quick .byMapping [ mapping ] #</td >
124
136
<td >#mapping #</td >
125
137
</tr >
126
138
</cfloop >
You can’t perform that action at this time.
0 commit comments